forked from extern/egroupware
Make a delay before favorites sorting action starts in order to prevent accidental sorting action
This commit is contained in:
parent
26bbb237c3
commit
f9e28d24e8
@ -167,6 +167,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],
|
|||||||
|
|
||||||
items:'li:not([data-id$="add"])',
|
items:'li:not([data-id$="add"])',
|
||||||
placeholder:'ui-fav-sortable-placeholder',
|
placeholder:'ui-fav-sortable-placeholder',
|
||||||
|
delay: 250, //(millisecond) delay before the sorting should start
|
||||||
update: function (event, ui)
|
update: function (event, ui)
|
||||||
{
|
{
|
||||||
self.favSortedList = jQuery(this).sortable('toArray', {attribute:'data-id'});
|
self.favSortedList = jQuery(this).sortable('toArray', {attribute:'data-id'});
|
||||||
|
@ -366,6 +366,7 @@ var AppJS = Class.extend(
|
|||||||
jQuery('ul','#favorite_sidebox_'+this.appname).sortable({
|
jQuery('ul','#favorite_sidebox_'+this.appname).sortable({
|
||||||
items:'li:not([data-id$="add"])',
|
items:'li:not([data-id$="add"])',
|
||||||
placeholder:'ui-fav-sortable-placeholder',
|
placeholder:'ui-fav-sortable-placeholder',
|
||||||
|
delay:250, //(millisecond) delay before the sorting should start
|
||||||
helper: function(event, item) {
|
helper: function(event, item) {
|
||||||
// We'll need to know which app this is for
|
// We'll need to know which app this is for
|
||||||
item.attr('data-appname',self.appname);
|
item.attr('data-appname',self.appname);
|
||||||
|
Loading…
Reference in New Issue
Block a user