(function($) { $.organize = { /** * Dynamically initialize the organize dialog when it is displayed */ init: function(data) { // Deal with ui.jquery bug: http://dev.jqueryui.com/ticket/4475 (target 1.8?) $(".sf-menu li.sfHover ul").css("z-index", 70); var height = $("#gOrganizeDetail").innerHeight(); $("#gMicroThumbPanel").height(height - $("#gOrganizeEditDrawerHandle").outerHeight()); $("#gDialog #gMicroThumbDone").click(function(event) { $("#gDialog").dialog("close"); window.location.reload(); }); $(".gBranchText span").click($.organize.collapse_or_expand_tree); $(".gBranchText").click($.organize.setContents); }, /** * Open or close a branch. If the children is a div placeholder, replace with