mirror of
https://github.com/myvesta/vesta
synced 2025-07-30 19:40:56 -07:00
Mass operation select box confirmation message
This commit is contained in:
parent
e6e335027f
commit
7bde4547b3
3 changed files with 10 additions and 6 deletions
|
@ -223,14 +223,14 @@
|
|||
<div class="b-cust-sel complex-select c-s-opt">
|
||||
<input type="hidden" name="" value="" class="c-s-value-ref">
|
||||
<span class="title c-s-opt c-s-title do_action_toggle_custom_select">Action</span>
|
||||
<div class="cust-sel-arrow do_action_toggle_custom_select c-s-opt"><i> </i></div>
|
||||
<div class="cust-sel-arrow do_action_toggle_custom_select c-s-opt"><i class="do_action_toggle_custom_select"> </i></div>
|
||||
<div class="cust-sel-options complex-select-content c-s-opt hidden">
|
||||
<div class="cust-sel-option ico_gray c-s-opt do_action_update_cs_value">
|
||||
<div class="cust-sel-option ico_gray c-s-opt do_action_update_cs_value">
|
||||
<input type="hidden" class="c-s-value" value="Suspend">
|
||||
Suspend
|
||||
</div>
|
||||
<div class="cust-sel-option ico_green c-s-opt do_action_update_cs_value">
|
||||
<input type="hidden" class="c-s-value" value="Unsuspended">
|
||||
<input type="hidden" class="c-s-value" value="Unsuspend">
|
||||
Unsuspend
|
||||
</div>
|
||||
<div class="cust-sel-option ico_red c-s-opt do_action_update_cs_value">
|
||||
|
|
|
@ -36,10 +36,13 @@ App.Actions.update_cs_value = function(evt)
|
|||
var elm = $(evt.target);
|
||||
elm = elm.hasClass('cust-sel-option') ? elm : elm.parents('.cust-sel-option');
|
||||
|
||||
var val = elm.find('.c-s-value').val();fb.log(val);
|
||||
elm.parents('.c-s-box').find('.c-s-title').text(val);
|
||||
elm.parents('.c-s-box').find('.c-s-value-ref').val(val);
|
||||
var val = elm.find('.c-s-value').val();
|
||||
$('.complex-select-content').addClass('hidden');
|
||||
|
||||
if (App.Tmp[App.Env.world + '_selected_records'] > 0) {
|
||||
var confirm_message_key = App.Tmp[App.Env.world + '_selected_records'] == 1 ? 1 + ' record' : App.Tmp[App.Env.world + '_selected_records'] + ' records';
|
||||
var confirmed = confirm('This action will ' + val.toLowerCase() + ' ' + confirm_message_key + '. Do you want to proceede?');
|
||||
}
|
||||
}
|
||||
|
||||
App.Actions.do_change_password = function()
|
||||
|
|
|
@ -6,6 +6,7 @@ App.View.popup = function(content)
|
|||
}
|
||||
|
||||
tpl.set(':content', content);
|
||||
tpl.set(':STYLE', 'height:'+$(window).height()+'px');
|
||||
$('#popup-bg, #popup').remove();
|
||||
$(document.body).append(tpl.finalize());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue