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
f21eaff3
Commit
f21eaff3
authored
Nov 16, 2006
by
Richard Mansfield
Browse files
removed unnecessary js string
parent
b3f122a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/editsitepage.php
View file @
f21eaff3
...
...
@@ -37,6 +37,8 @@ foreach ($sitepages as $page) {
}
asort
(
$pageoptions
);
$getstring
=
array
(
'discardpageedits'
=>
"'"
.
get_string
(
'discardpageedits'
,
'admin'
)
.
"'"
);
$f
=
array
(
'name'
=>
'editsitepage'
,
'method'
=>
'post'
,
...
...
@@ -104,7 +106,7 @@ var originalcontent = '';
function
requestPageText
(
removeMessage
)
{
// Allow the user to abort change if changes have been made in the editor.
if
(
getEditorContent
()
!=
originalcontent
)
{
var
answer
=
confirm
(
get
_
string
(
'discardpageedits'
)
);
var
answer
=
confirm
(
{
$
getstring
[
'discardpageedits'
]}
);
if
(
!
answer
)
{
$
(
'pagename'
)
.
value
=
oldpagename
;
return
;
...
...
@@ -159,9 +161,7 @@ function onLoad() {
addLoadEvent
(
onLoad
);
EOJS
;
$jsstrings
=
array
(
'discardpageedits'
);
$smarty
=
smarty
(
$js
,
array
(),
$jsstrings
);
$smarty
=
smarty
(
$js
);
$smarty
->
assign
(
'pageeditform'
,
$form
);
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$ijs
);
$smarty
->
display
(
'admin/editsitepage.tpl'
);
...
...
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