mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Adds an ajax indicator on the sort handle (#12909).
git-svn-id: http://svn.redmine.org/redmine/trunk@15341 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a1874c8975
commit
5a8a21151e
@ -606,8 +606,9 @@ function beforeShowDatePicker(input, inst) {
|
||||
},
|
||||
update: function(event, ui) {
|
||||
var sortable = $(this);
|
||||
var url = ui.item.find(".sort-handle").data("reorder-url");
|
||||
var param = ui.item.find(".sort-handle").data("reorder-param");
|
||||
var handle = ui.item.find(".sort-handle").addClass("ajax-loading");
|
||||
var url = handle.data("reorder-url");
|
||||
var param = handle.data("reorder-param");
|
||||
var data = {};
|
||||
data[param] = {position: ui.item.index() + settings['firstPosition']};
|
||||
$.ajax({
|
||||
@ -622,6 +623,9 @@ function beforeShowDatePicker(input, inst) {
|
||||
error: function(jqXHR, textStatus, errorThrown){
|
||||
alert(jqXHR.status);
|
||||
sortable.sortable("cancel");
|
||||
},
|
||||
complete: function(jqXHR, textStatus, errorThrown){
|
||||
handle.removeClass("ajax-loading");
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@ -1202,6 +1202,7 @@ a.icon-only::after {
|
||||
.icon-file.application-x-gzip { background-image: url(../images/files/zip.png); }
|
||||
|
||||
.sort-handle { width:16px; height:16px; background:url(../images/reorder.png) no-repeat 0 50%; cursor:move; }
|
||||
.sort-handle.ajax-loading { background-image: url(../images/loading.gif); }
|
||||
tr.ui-sortable-helper { border:1px solid #e4e4e4; }
|
||||
|
||||
.contextual>.icon:not(:first-child), .buttons>.icon:not(:first-child) { margin-left: 5px; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user