Browse Source

Update to include the missing javascript (#2998)

this solves the problem in regard of internal chat.
TLCD96 3 years ago
parent
commit
5338d39336
1 changed files with 11 additions and 0 deletions
  1. 11 0
      web/js/pages/edit_mail_acc.js

+ 11 - 0
web/js/pages/edit_mail_acc.js

@@ -40,6 +40,16 @@ App.Listeners.MAIL_ACC.checkbox_unlimited_feature = function() {
     $('.unlim-trigger').on('click', App.Actions.MAIL_ACC.toggle_unlimited_feature);
     $('.unlim-trigger').on('click', App.Actions.MAIL_ACC.toggle_unlimited_feature);
 }
 }
 
 
+
+App.Helpers.isUnlimitedValue = function(value) {
+    var value = value.trim();
+    if (value == App.Constants.UNLIM_VALUE || value == App.Constants.UNLIM_TRANSLATED_VALUE) {
+        return true;
+    }
+
+    return false;
+}
+
 App.Listeners.MAIL_ACC.init = function() {
 App.Listeners.MAIL_ACC.init = function() {
     $('.unlim-trigger').each(function(i, elm) {
     $('.unlim-trigger').each(function(i, elm) {
         var ref = $(elm).prev('.vst-input');
         var ref = $(elm).prev('.vst-input');
@@ -52,6 +62,7 @@ App.Listeners.MAIL_ACC.init = function() {
         }
         }
     });
     });
 }
 }
+App.Listeners.MAIL_ACC.checkbox_unlimited_feature();
 
 
 App.Actions.MAIL_ACC.update_v_password = function (){
 App.Actions.MAIL_ACC.update_v_password = function (){
     var password = $('input[name="v_password"]').val();
     var password = $('input[name="v_password"]').val();