mirror of
https://github.com/myvesta/vesta
synced 2025-08-13 18:17:55 -07:00
js bugfixes
This commit is contained in:
parent
9e9327df0b
commit
4ebd88bc16
6 changed files with 27 additions and 16 deletions
Binary file not shown.
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 46 KiB |
|
@ -25,7 +25,6 @@ FM.ORDER_BOX_B = $('.context-menu.sort-order.tab-b');
|
||||||
FM.ORDER_TAB_A = 'type_asc';
|
FM.ORDER_TAB_A = 'type_asc';
|
||||||
FM.ORDER_TAB_B = 'type_asc';
|
FM.ORDER_TAB_B = 'type_asc';
|
||||||
|
|
||||||
|
|
||||||
FM.TAB_A_CURRENT_PATH = GLOBAL.TAB_A__PATH;
|
FM.TAB_A_CURRENT_PATH = GLOBAL.TAB_A__PATH;
|
||||||
FM.TAB_B_CURRENT_PATH = GLOBAL.TAB_B_PATH;
|
FM.TAB_B_CURRENT_PATH = GLOBAL.TAB_B_PATH;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
App.Actions.MAIL_ACC.enable_unlimited = function(elm, source_elm) {
|
App.Actions.MAIL_ACC.enable_unlimited = function(elm, source_elm) {
|
||||||
$(elm).data('checked', true);
|
$(elm).data('checked', true);
|
||||||
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
||||||
$(elm).val(App.Constants.UNLIM_VALUE);
|
$(elm).val(App.Constants.UNLIM_TRANSLATED_VALUE);
|
||||||
$(elm).attr('disabled', true);
|
$(elm).attr('disabled', true);
|
||||||
$(source_elm).css('opacity', '1');
|
$(source_elm).css('opacity', '1');
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,9 @@ App.Listeners.MAIL_ACC.checkbox_unlimited_feature();
|
||||||
$('form[name="v_quota"]').bind('submit', function(evt) {
|
$('form[name="v_quota"]').bind('submit', function(evt) {
|
||||||
$('input:disabled').each(function(i, elm) {
|
$('input:disabled').each(function(i, elm) {
|
||||||
$(elm).attr('disabled', false);
|
$(elm).attr('disabled', false);
|
||||||
|
if (App.Helpers.isUnlimitedValue($(elm).val())) {
|
||||||
|
$(elm).val(App.Constants.UNLIM_VALUE);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
App.Actions.PACKAGE.enable_unlimited = function(elm, source_elm) {
|
App.Actions.PACKAGE.enable_unlimited = function(elm, source_elm) {
|
||||||
$(elm).data('checked', true);
|
$(elm).data('checked', true);
|
||||||
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
||||||
$(elm).val(App.Constants.UNLIM_VALUE);
|
$(elm).val(App.Constants.UNLIM_TRANSLATED_VALUE);
|
||||||
$(elm).attr('disabled', true);
|
$(elm).attr('disabled', true);
|
||||||
$(source_elm).css('opacity', '1');
|
$(source_elm).css('opacity', '1');
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,9 @@ App.Listeners.PACKAGE.checkbox_unlimited_feature();
|
||||||
$('form[name="v_add_package"]').bind('submit', function(evt) {
|
$('form[name="v_add_package"]').bind('submit', function(evt) {
|
||||||
$('input:disabled').each(function(i, elm) {
|
$('input:disabled').each(function(i, elm) {
|
||||||
$(elm).attr('disabled', false);
|
$(elm).attr('disabled', false);
|
||||||
|
if (App.Helpers.isUnlimitedValue($(elm).val())) {
|
||||||
|
$(elm).val(App.Constants.UNLIM_VALUE);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
App.Actions.MAIL_ACC.enable_unlimited = function(elm, source_elm) {
|
App.Actions.MAIL_ACC.enable_unlimited = function(elm, source_elm) {
|
||||||
$(elm).data('checked', true);
|
$(elm).data('checked', true);
|
||||||
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
||||||
$(elm).val(App.Constants.UNLIM_VALUE);
|
$(elm).val(App.Constants.UNLIM_TRANSLATED_VALUE);
|
||||||
$(elm).attr('disabled', true);
|
$(elm).attr('disabled', true);
|
||||||
$(source_elm).css('opacity', '1');
|
$(source_elm).css('opacity', '1');
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,9 @@ App.Listeners.MAIL_ACC.checkbox_unlimited_feature();
|
||||||
$('form[name="v_quota"]').bind('submit', function(evt) {
|
$('form[name="v_quota"]').bind('submit', function(evt) {
|
||||||
$('input:disabled').each(function(i, elm) {
|
$('input:disabled').each(function(i, elm) {
|
||||||
$(elm).attr('disabled', false);
|
$(elm).attr('disabled', false);
|
||||||
|
if (App.Helpers.isUnlimitedValue($(elm).val())) {
|
||||||
|
$(elm).val(App.Constants.UNLIM_VALUE);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
App.Actions.PACKAGE.enable_unlimited = function(elm, source_elm) {
|
App.Actions.PACKAGE.enable_unlimited = function(elm, source_elm) {
|
||||||
$(elm).data('checked', true);
|
$(elm).data('checked', true);
|
||||||
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
$(elm).data('prev_value', $(elm).val()); // save prev value in order to restore if needed
|
||||||
$(elm).val(App.Constants.UNLIM_VALUE);
|
$(elm).val(App.Constants.UNLIM_TRANSLATED_VALUE);
|
||||||
$(elm).attr('disabled', true);
|
$(elm).attr('disabled', true);
|
||||||
$(source_elm).css('opacity', '1');
|
$(source_elm).css('opacity', '1');
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,9 @@ App.Listeners.PACKAGE.checkbox_unlimited_feature();
|
||||||
$('form[name="v_edit_package"]').bind('submit', function(evt) {
|
$('form[name="v_edit_package"]').bind('submit', function(evt) {
|
||||||
$('input:disabled').each(function(i, elm) {
|
$('input:disabled').each(function(i, elm) {
|
||||||
$(elm).attr('disabled', false);
|
$(elm).attr('disabled', false);
|
||||||
|
if (App.Helpers.isUnlimitedValue($(elm).val())) {
|
||||||
|
$(elm).val(App.Constants.UNLIM_VALUE);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue