summaryrefslogtreecommitdiff
path: root/modules/organize/js/organize_init.js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-05 09:23:32 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-05 09:23:32 -0700
commit397468c47b8fc3fefeb54ff19a73980ed1dd8c20 (patch)
tree1dd6668463cecb755325f0644945897bdbe98423 /modules/organize/js/organize_init.js
parente37526f94df74a52a9cf36f0a5a5e641958ebbb3 (diff)
Revert "Checkpoint the organize module rewrite. At this point, it doesn't really do"
This reverts commit a25f08d433d504a53763feb358a1aa7f5f798de6.
Diffstat (limited to 'modules/organize/js/organize_init.js')
-rw-r--r--modules/organize/js/organize_init.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/organize/js/organize_init.js b/modules/organize/js/organize_init.js
new file mode 100644
index 00000000..ed036fdb
--- /dev/null
+++ b/modules/organize/js/organize_init.js
@@ -0,0 +1,29 @@
+$("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: false,
+ close: function () {
+ $("#gDialog").trigger("organize_close");
+ $("#gDialog").dialog("destroy").remove();
+ },
+ zIndex: 75
+ });
+
+ //showLoading("#gDialog");
+
+ $.get(href, function(data) {
+ $("#gDialog").html(data);
+ });
+ return false;
+ });
+});
+
+