Remove 6 more lines by removing the generalization of the close dialog processing

This commit is contained in:
Tim Almdal
2009-08-06 10:03:38 -07:00
parent 93c0dffab3
commit 362b4d70f7

View File

@@ -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>
*/