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
f98aa084
Commit
f98aa084
authored
Mar 17, 2016
by
Aaron Wells
Committed by
Robert Lyon
Mar 23, 2016
Browse files
Remove use of window.open() into new window
Bug 1558361 Change-Id: Ifb0dba0d91a0ea2ba2b2dfc2daeda39b679c0397
parent
1c923af6
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/blocktype/recentposts/js/recentposts.js
View file @
f98aa084
...
...
@@ -6,6 +6,6 @@ function addNewPostShortcut(blockid) {
if
(
!
blogselect
)
{
blogselect
=
jQuery
(
this
).
find
(
'
span
'
).
first
().
attr
(
'
id
'
).
match
(
/
\d
+/
);
}
window
.
open
(
config
.
wwwroot
+
'
artefact/blog/post.php?blog=
'
+
blogselect
,
'
_
blank
'
);
window
.
open
(
config
.
wwwroot
+
'
artefact/blog/post.php?blog=
'
+
blogselect
,
'
_
self
'
);
});
}
htdocs/theme/raw/templates/skin/sitefontresults.tpl
View file @
f98aa084
...
...
@@ -15,7 +15,7 @@
</li>
{
if
$font.fonttype
==
'google'
}
<li>
<a
class=
"btn-display"
href=
"javascript:"
onclick=
"window.open('http://www.google.com/webfonts/specimen/
{
$font.urlencode
}
',
'specimen','width=700,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no
')"
>
<a
class=
"btn-display"
href=
"javascript:"
onclick=
"window.open('http://www.google.com/webfonts/specimen/
{
$font.urlencode
}
',
'_self
')"
>
{
str
tag
=
"viewfontspecimen"
section
=
"skin"
}
<span
class=
"accessible-hidden sr-only"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
...
...
@@ -24,7 +24,7 @@
</li>
{
else
}
<li>
<a
class=
"btn-display"
href=
"javascript:"
onclick=
"window.open('
{
$WWWROOT
}
admin/site/font/specimen.php?font=
{
$font.name
}
',
'specimen','width=700,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no
')"
>
<a
class=
"btn-display"
href=
"javascript:"
onclick=
"window.open('
{
$WWWROOT
}
admin/site/font/specimen.php?font=
{
$font.name
}
',
'_self
')"
>
{
str
tag
=
"viewfontspecimen"
section
=
"skin"
}
<span
class=
"accessible-hidden sr-only"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
...
...
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