Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
22195310
Commit
22195310
authored
Jun 11, 2010
by
Richard Mansfield
Browse files
Use 'hidden' class rather than 'invisible' on edit site menu page
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
f18f4430
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/site/menu.php
View file @
22195310
...
...
@@ -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>'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment