Refactor the gallery dialog into a jQuery widget

This commit is contained in:
Tim Almdal
2009-08-07 08:58:57 -07:00
parent 9dce5685af
commit bc6c5207be
8 changed files with 161 additions and 145 deletions

View File

@@ -34,7 +34,7 @@
<?= t("Add") ?>
</button>
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
<button id="gServerCloseButton" class="ui-state-default ui-corner-all">
<?= t("Close") ?>
</button>
</span>
@@ -48,6 +48,9 @@
progressbar("value", 0);
$("#gProgress").slideDown("fast", function() { start_add() });
});
$("#gServerCloseButton").click(function(event) {
$("#gDialog").dialog("close");
});
});
</script>