Files
gallery3/modules/organize/js/organize_init.js
T
Tim Almdal ad10584dc1 1) Add rearrange processing as a task
2) Improved drop location determination
3) Add a revert if dropped on an invalid target
4) Add a popup dialog to display ajax errors
Still to do progress bar, pause/continue and status messages
2009-04-20 18:44:19 +00:00

30 lines
606 B
JavaScript

$("document").ready(function() {
$("#gOrganizeLink").click(function(event) {
event.preventDefault();
var href = event.target.href;
$("body").append('<div id="gDialog"></div>');
$("#gDialog").dialog({
autoOpen: false,
autoResize: false,
modal: true,
resizable: true,
close: function () {
$("#gDialog").trigger("organize_close");
$("#gDialog").dialog("destroy").remove();
},
zIndex: 75
});
//showLoading("#gDialog");
$.get(href, function(data) {
$("#gDialog").html(data);
});
return false;
});
});