Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mahara
mahara
Commits
3f5b8930
Commit
3f5b8930
authored
Mar 17, 2016
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of window.open() into new window
Bug 1558361 Change-Id: Ifb0dba0d91a0ea2ba2b2dfc2daeda39b679c0397
parent
00cec135
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
htdocs/artefact/blog/blocktype/recentposts/js/recentposts.js
htdocs/artefact/blog/blocktype/recentposts/js/recentposts.js
+1
-1
htdocs/theme/raw/templates/skin/sitefonts.tpl
htdocs/theme/raw/templates/skin/sitefonts.tpl
+2
-2
No files found.
htdocs/artefact/blog/blocktype/recentposts/js/recentposts.js
View file @
3f5b8930
...
...
@@ -7,7 +7,7 @@ function addNewPostShortcut(blockid) {
e
.
stop
();
var
p
=
getFirstParentByTagAndClassName
(
a
,
'
div
'
,
'
shortcut
'
);
var
blogselect
=
getFirstElementByTagAndClassName
(
'
select
'
,
'
select
'
,
p
);
window
.
open
(
config
.
wwwroot
+
'
artefact/blog/post.php?blog=
'
+
blogselect
.
value
,
'
_
blank
'
);
window
.
open
(
config
.
wwwroot
+
'
artefact/blog/post.php?blog=
'
+
blogselect
.
value
,
'
_
self
'
);
});
}
);
...
...
htdocs/theme/raw/templates/skin/sitefonts.tpl
View file @
3f5b8930
...
...
@@ -21,9 +21,9 @@
<ul
class=
"actionlist"
>
<li
class=
"notbtn"
>
{
str
tag
=
"fonttype.$font.fonttype"
section
=
"skin"
}
</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
')"
>
{
str
tag
=
"viewfontspecimen"
section
=
"skin"
}
<span
class=
"accessible-hidden"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></li>
<li><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"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></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
')"
>
{
str
tag
=
"viewfontspecimen"
section
=
"skin"
}
<span
class=
"accessible-hidden"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></li>
<li><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"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></li>
{/
if
}
{
if
$font.fonttype
==
'site'
}
<li><a
class=
"btn-edit"
href=
"
{
$WWWROOT
}
admin/site/font/edit.php?font=
{
$font.name
}
"
>
{
str
tag
=
"editproperties"
section
=
"skin"
}
<span
class=
"accessible-hidden"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></li>
{/
if
}
{
if
$font.fonttype
==
'site'
}
<li><a
class=
"btn-add"
href=
"
{
$WWWROOT
}
admin/site/font/add.php?font=
{
$font.name
}
"
>
{
str
tag
=
"addfontvariant"
section
=
"skin"
}
<span
class=
"accessible-hidden"
>
{
str
tag
=
viewfontspecimenfor
section
=
skin
arg1
=
$font.title
}
</span></a></li>
{/
if
}
...
...
Write
Preview
Markdown
is supported
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