]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/js/js_surfbar_member_edit.tpl
Added check for installation phase, this fixes the message of a missing template...
[mailer.git] / templates / de / html / js / js_surfbar_member_edit.tpl
index 9cab677d3925187c7330081b7073f850fb6f1c89..2e0962c6d8e9c2be38cec92730e77aa2dfebba57 100644 (file)
@@ -28,7 +28,7 @@
 
 var limit = document.getElementById('limit');
 var span = document.getElementById('span_limit');
-var old_limit = {%pipe,bigintval=$content[views_max]%};
+var old_limit = $content[url_views_max];
 
 function FocusLimitedNo () {
        if ((limit.value > 0) && (limit.value != '-')) {
@@ -65,8 +65,17 @@ function ResetForm () {
        return false;
 }
 
-if ({%pipe,bigintval=$content[limited]%} == true) {
+if ($content[limited] == true) {
        FocusLimitedYes();
 } else {
        FocusLimitedNo();
 }
+
+// Register event listeners
+$('#edit').submit(function() {
+       return submitForm();
+});
+
+$('#reset').click(function() {
+       return resetForm();
+});