mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 23:31:58 +02:00
MDL-21403 removing ->asap() used for flicker-lessremoval of go button, no use .hiddenifjs class instead
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user