Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('[id*=negotiation_plan_id]:hidden').on('change', function (){
- if($(this).val() != ""){
- $('.edit-negotiation-product').each(function() {
- $(this).attr('data-confirm', "<%= I18n.t('messages.if_proceed_will_need_to_choose_plan_again') %>");
- });
- $('.destroy-negotiation-product').each(function() {
- $(this).attr('data-confirm', "<%= I18n.t('messages.if_proceed_will_need_to_choose_plan_again') %>");
- });
- $('#add-negotiation-product').attr(
- 'data-confirm',
- "<%= I18n.t('messages.if_proceed_will_need_to_choose_plan_again') %>"
- );
- }else{
- $('.edit-negotiation-product').each(function() { $(this).removeAttr('data-confirm'); });
- $('.destroy-negotiation-product').each(function() { $(this).removeAttr('data-confirm'); });
- $('#add-negotiation-product').removeAttr('data-confirm'); }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement