diff options
Diffstat (limited to 'modules-available/sysconfig/templates/screensaver-text.html')
-rw-r--r-- | modules-available/sysconfig/templates/screensaver-text.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/sysconfig/templates/screensaver-text.html b/modules-available/sysconfig/templates/screensaver-text.html index 1aa45a90..9fd0cea4 100644 --- a/modules-available/sysconfig/templates/screensaver-text.html +++ b/modules-available/sysconfig/templates/screensaver-text.html @@ -1,6 +1,6 @@ <form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&action=addmodule&step={{step}}"> <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="next" value="{{next}}"> + <input type="hidden" id="next" name="next" value="{{next}}"> <input type="hidden" name="id" value="{{id}}"> <input type="hidden" name="edit" value="{{edit}}"> @@ -47,7 +47,7 @@ </div> <div class="btn-group"> - <a class="btn btn-default" onclick="window.history.back()" tabindex="5">{{lang_back}}</a> + <button class="btn btn-default" type="submit" onclick="goBack()" tabindex="5">{{lang_back}}</button> </div> <div class="btn-group pull-right"> <button type="submit" class="btn btn-primary" tabindex="6"> @@ -80,7 +80,6 @@ switchMode({{inherit_locked}}); }, false); - function switchMode(mode) { // true = inherit on // false = inherit off @@ -98,6 +97,10 @@ $('#inherit_locked').val(false); } } + + function goBack() { + $('#next').val('{{prev}}'); + } </script> <style> |