Commit 3f5b8930 authored by Aaron Wells's avatar Aaron Wells

Remove use of window.open() into new window

Bug 1558361

Change-Id: Ifb0dba0d91a0ea2ba2b2dfc2daeda39b679c0397
parent 00cec135
......@@ -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');
});
}
);
......
......@@ -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}
......
Markdown is supported
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