Skip to content

Commit

Permalink
Remove braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Aug 14, 2018
1 parent 5c210f1 commit 7c938f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/picklist/picklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,15 @@ export class PickList implements AfterViewChecked,AfterContentInit {
onDrop(event: DragEvent, index: number, listType: number) {
if(this.onListItemDroppoint) {
if(listType === this.SOURCE_LIST) {
if(this.fromListType === this.TARGET_LIST) {
if(this.fromListType === this.TARGET_LIST)
this.insert(this.draggedItemIndexTarget, this.target, index, this.source, this.onMoveToSource);
else
this.objectUtils.reorderArray(this.source, this.draggedItemIndexSource, (this.draggedItemIndexSource > index) ? index : (index === 0) ? 0 : index - 1);

this.dragOverItemIndexSource = null;
}
else {
if(this.fromListType === this.SOURCE_LIST) {
if(this.fromListType === this.SOURCE_LIST)
this.insert(this.draggedItemIndexSource, this.source, index, this.target, this.onMoveToTarget);
else
this.objectUtils.reorderArray(this.target, this.draggedItemIndexTarget, (this.draggedItemIndexTarget > index) ? index : (index === 0) ? 0 : index - 1);
Expand Down

0 comments on commit 7c938f0

Please sign in to comment.