Active tab kept in sync after creating a default level folder.

--HG--
branch : dev
This commit is contained in:
Dave Reed
2011-02-22 11:56:21 -08:00
parent 1b1f57b6c4
commit ec0dfec53f

View File

@@ -69,7 +69,13 @@
});
$(function () {
$("#tabs").tabs({ selected: parseInt(query("tab", location.hash)) || 0 });
$("#tabs").tabs({
selected: parseInt(query("tab", location.hash)) || 0,
select: function (event, ui) {
// sync the active tab with the hash value
location.hash = "tab=" + ui.index;
}
});
// populate width and height when image loads
// note: load event does not bubble so cannot be used with .live
@@ -144,7 +150,7 @@
height: $(prefix + "height").val()
};
img.html = getImageHtml(img);
window.opener.jQuery[query("callback")]({ img: img });
window.opener.jQuery[query("callback")]({ img: img });
window.close();
}