Skip to content

Commit

Permalink
SAK-32480 use the new keyboardSortable jquery-ui widget provided by Hans
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff committed Aug 2, 2017
1 parent e5306b7 commit 7d8d1a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Sakai jQuery UI Widgets
* Sakai jQuery keyboard sortable from https://raw.githubusercontent.com/hanshillen/sakai-keyboardsortable/master/js/jquery.sakai.js
*/

$(function() {
Expand Down Expand Up @@ -136,6 +136,7 @@ $(function() {
},
_notify: function(msg) {
this.liveRegion.liveregion("instance").notify(msg);
this._trigger('update');
}
});

Expand Down Expand Up @@ -168,4 +169,4 @@ $(function() {
$node.remove();
}
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,10 @@ $PBJQ(document).ready(function($){

highlightMaxItems();

list.sortable({
list.keyboardSortable({
items: "li:not(.favorites-max-marker)",
handle: ".fav-drag-handle",
stop: function () {
update: function () {
// Rehighlight the first N items
highlightMaxItems();

Expand Down

0 comments on commit 7d8d1a7

Please sign in to comment.