Replace inline onlick handler for go back.
This commit is contained in:
parent
97b847314b
commit
cdeb113846
@ -78,7 +78,7 @@
|
||||
{/if}
|
||||
{if $case_rename}
|
||||
{if $go_back}
|
||||
<input type="button" value="{$CONST.BACK}" onclick="history.go(-1);">
|
||||
<input class="go_back" type="button" value="{$CONST.BACK}">
|
||||
{else}
|
||||
<script>location.href="?serendipity[adminModule]=images&serendipity[adminAction]=default";</script>
|
||||
<noscript><a href="?serendipity[adminModule]=images&serendipity[adminAction]=default">{$CONST.DONE}</a></noscript>
|
||||
|
@ -237,7 +237,7 @@ if (parent.frames && parent.frames['tree']) {
|
||||
{/if}
|
||||
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file}
|
||||
<div class="form_buttons">
|
||||
<input type="button" value="{$CONST.BACK}" onclick="history.go(-1);">
|
||||
<input class="go_back" type="button" value="{$CONST.BACK}">
|
||||
<input type="button" value="{$CONST.DONE}" onclick="rememberMediaOptions(); {$media.file.origfinishJSFunction}">
|
||||
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_submit' eventData=$media.file}
|
||||
</div>
|
||||
|
@ -750,6 +750,11 @@ function highlightComment(id, checkvalue) {
|
||||
invertSelection();
|
||||
});
|
||||
|
||||
// Go back one step
|
||||
$('.go_back').click(function() {
|
||||
history.go(-1);
|
||||
});
|
||||
|
||||
// Add media db upload field
|
||||
var $uploadForm = $('body').has('#uploadform');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user