closeInfoBox: properly cleanup contents

This commit is contained in:
Andrew Dolgov 2010-02-03 15:01:33 +03:00
parent a44049f661
commit 55132a454f
3 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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>";

View File

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