MDL-43243 JavaScript: Deprecate show_item

This commit is contained in:
Andrew Nicols
2013-12-10 09:55:34 +08:00
parent f260850efc
commit 0d8907e3d8
3 changed files with 7 additions and 7 deletions
+5 -3
View File
@@ -1383,12 +1383,14 @@ function close_window(e) {
/**
* Used in a couple of modules to hide navigation areas when using AJAX
* @deprecated since Moodle 2.7. This function will be removed in Moodle 2.9.
*/
function show_item(itemid) {
var item = document.getElementById(itemid);
Y.log('show_item has been deprecated since Moodle 2.7 and will be removed in Moodle 2.9',
'warn', 'javascript-static.js');
var item = Y.one('#' + itemid);
if (item) {
item.style.display = "";
item.show();
}
}