mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 10:14:32 -04:00
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
30 lines
606 B
JavaScript
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;
|
|
});
|
|
});
|
|
|
|
|