Commit 22195310 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use 'hidden' class rather than 'invisible' on edit site menu page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent f18f4430
......@@ -194,8 +194,8 @@ function closeopenedits() {
if (hasElementClass(rows[i],'edit')) {
removeElement(rows[i]);
}
else if (hasElementClass(rows[i],'invisible')) {
removeElementClass(rows[i],'invisible');
else if (hasElementClass(rows[i],'hidden')) {
removeElementClass(rows[i],'hidden');
}
}
}
......@@ -216,7 +216,7 @@ function changeaddform(type) {
function edititem(item) {
closeopenedits();
var menuitem = $('menuitem_'+item.id);
addElementClass(menuitem,'invisible');
addElementClass(menuitem,'hidden');
var newrow = editform(item);
insertSiblingNodesBefore(menuitem, newrow);
}
......@@ -273,8 +273,7 @@ foreach ($menulist as &$menu) {
'name' => get_string($menu,'admin'));
}
$style = '<style type="text/css">.invisible{display:none;}</style>';
$smarty = smarty(array(), array($style));
$smarty = smarty();
$smarty->assign('INLINEJAVASCRIPT', $ijs);
$smarty->assign('MENUS', $menulist);
$smarty->assign('descriptionstrargs', array('<a href="' . get_config('wwwroot') . 'artefact/file/sitefiles.php">', '</a>'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment