take out javascript from html (Closes #253)

This commit is contained in:
Uwe Steinmann 2016-03-29 07:59:20 +02:00
parent f985d636b6
commit 2c297b5e1c
2 changed files with 4 additions and 1 deletions

View File

@ -382,6 +382,9 @@ $(document).ready( function() {
}); });
}); });
$('button.history-back').on('click', function(event) {
window.history.back();
});
}); });
function onAddClipboard(ev) { /* {{{ */ function onAddClipboard(ev) { /* {{{ */

View File

@ -1195,7 +1195,7 @@ $('#clearfilename<?php print $formName ?>').click(function(ev) {
print "<h4>".getMLText('error')."!</h4>"; print "<h4>".getMLText('error')."!</h4>";
print htmlspecialchars($error); print htmlspecialchars($error);
print "</div>"; print "</div>";
print "<div><button class=\"btn\" onclick=\"window.history.back();\">".getMLText('back')."</button></div>"; print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
$this->contentEnd(); $this->contentEnd();
$this->htmlEndPage(); $this->htmlEndPage();