MDL-21403 removing ->asap() used for flicker-lessremoval of go button, no use .hiddenifjs class instead

This commit is contained in:
Petr Skoda
2010-01-26 09:32:21 +00:00
parent a62d5845ef
commit 2d65597b6c
8 changed files with 29 additions and 16 deletions

View File

@@ -1183,12 +1183,6 @@ function close_window_reloading_opener() {
/**
* Used in a couple of modules to hide navigation areas when using AJAX
*/
function hide_item(itemid) {
var item = document.getElementById(itemid);
if (item) {
item.style.display = "none";
}
}
function show_item(itemid) {
var item = document.getElementById(itemid);
@@ -1437,3 +1431,14 @@ function frame_breakout(e, properties) {
function submitFormById(id) {
submit_form_by_id(null, {id: id});
}
/**
* Used in a couple of modules to hide navigation areas when using AJAX
*/
function hide_item(itemid) {
// use class='hiddenifjs' instead
var item = document.getElementById(itemid);
if (item) {
item.style.display = "none";
}
}