diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 10:03:38 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 19:21:30 -0700 |
commit | 362b4d70f72fa6baed15bd323a2ca5deea7d6ab3 (patch) | |
tree | 34d184c0108a905a9ddb8fd9dc8d944446257987 /modules | |
parent | 93c0dffab3ba3631c9ebf4693571bd38e5613d1c (diff) |
Remove 6 more lines by removing the generalization of the close dialog processing
Diffstat (limited to 'modules')
-rw-r--r-- | modules/organize/js/organize.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/organize/js/organize.js b/modules/organize/js/organize.js index 6a65bfa2..3e58f3f3 100644 --- a/modules/organize/js/organize.js +++ b/modules/organize/js/organize.js @@ -17,9 +17,9 @@ height: height, position: "center", close: function () { - $("#gOrganizeDialog").trigger("organize_close"); $("#gOrganizeDialog").dialog("destroy").remove(); - }, + document.location.reload(); + }, zIndex: 75 }); $.get(href, _init); @@ -47,20 +47,14 @@ $("#gOrganizeDialog").dialog('option', 'title', $("#gOrganizeDialog fieldset legend:eq(0)").html()); } - $("#gOrganizeDialog #gMicroThumbDone").click(_dialog_close); - $("#gOrganizeDialog").bind("organize_close", function(target) { - document.location.reload(); + $("#gOrganizeDialog #gMicroThumbDone").click(function(event) { + $("#gOrganizeDialog").dialog("close"); }); $(".gBranchText span").click(_collapse_or_expanded_tree); $(".gBranchText").click(_setContents); }; - function _dialog_close(event) { - event.preventDefault(); - $("#gOrganizeDialog").dialog("close"); - }; - /** * Open or close a branch. If the children is a div placeholder, replace with <ul> */ |