Skip to content

Commit 375e5d0

Browse files
committed
Mark form as dirty when items are sorted
1 parent c57c277 commit 375e5d0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/RJP.MultiUrlPicker.Web.UI/MultiUrlPicker.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,16 @@
3434
distance: 10,
3535
tolerance: 'pointer',
3636
scroll: true,
37-
zIndex: 6000
37+
zIndex: 6000,
38+
update: function () {
39+
angularHelper.getCurrentForm($scope).$setDirty()
40+
}
3841
}
3942

4043
this.remove = function ($index) {
4144
this.renderModel.splice($index, 1)
4245

43-
angularHelper.getCurrentForm($scope).$setDirty();
46+
angularHelper.getCurrentForm($scope).$setDirty()
4447
}
4548

4649
this.openLinkPicker = function (link, $index) {
@@ -98,7 +101,7 @@
98101
link.icon = 'icon-link'
99102
}
100103

101-
angularHelper.getCurrentForm($scope).$setDirty();
104+
angularHelper.getCurrentForm($scope).$setDirty()
102105
}
103106

104107
this.linkPickerOverlay.show = false

0 commit comments

Comments
 (0)