~unifield-team/unifield-web/us-1721

« back to all changes in this revision

Viewing changes to addons/openerp/static/javascript/form.js

  • Committer: jf
  • Date: 2016-11-09 10:34:17 UTC
  • mfrom: (4816.1.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20161109103417-qns2zbjbsuwxav7s
US-1780 [FIX] Attachemnts for view: do not open new tab on action after downloading the attachment

lp:~fabien-morin/unifield-web/fm-us-1780

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
    // Cant use $form.attr due to http://dev.jquery.com/ticket/3113 as there is a form with a field called
302
302
    // action when creating an activity
303
303
    $form[0].setAttribute('action', action);
 
304
    previous_target = $form.attr("target");
304
305
    $form.attr("target", target);
305
306
    $form.submit();
 
307
    $form.attr("target", previous_target);
306
308
}
307
309
 
308
310
function pager_action(src){