closeInfoBox: properly cleanup contents

master
Andrew Dolgov 15 years ago
parent a44049f661
commit 55132a454f

@ -1266,7 +1266,7 @@ function closeInfoBox(cleanup) {
Element.hide("dialog_overlay");
Element.hide("infoBoxShadow");
if (cleanup) $("infoBoxShadow").innerHTML = " ";
if (cleanup) $("infoBox").innerHTML = " ";
}
} catch (e) {
exception_error("closeInfoBox", e);

@ -426,7 +426,7 @@
print "<div class=\"dlgButtons\">
<button onclick=\"javascript:search()\">".__('Search')."</button>
<button onclick=\"javascript:searchCancel()\">".__('Cancel')."</button>
<button onclick=\"javascript:closeInfoBox(true)\">".__('Cancel')."</button>
</div>";
print "</div>";

@ -315,10 +315,6 @@ function resetSearch() {
}
}
function searchCancel() {
closeInfoBox(true);
}
function search() {
closeInfoBox();
viewCurrentFeed(0, "");

Loading…
Cancel
Save