closeInfoBox: properly cleanup contents
This commit is contained in:
parent
a44049f661
commit
55132a454f
3 changed files with 2 additions and 6 deletions
|
@ -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…
Reference in a new issue