Просмотр исходного кода

Update to include the missing javascript (#2998)

this solves the problem in regard of internal chat.
TLCD96 3 лет назад
Родитель
Сommit
5338d39336
1 измененных файлов с 11 добавлено и 0 удалено
  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);
 }
 
+
+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() {
     $('.unlim-trigger').each(function(i, elm) {
         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 (){
     var password = $('input[name="v_password"]').val();