~unifield-team/unifield-web/uf7

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2017-10-27 14:32:19 UTC
  • mfrom: (4860.3.14 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20171027143219-lqbhfhsk9zgo9swf
US-3172 [IMP] Keyboard shortcuts: popup help

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
    var $dialogs = jQuery('.action-dialog');
194
194
    switch(target) {
195
195
        case 'new':
196
 
            jQuery.frame_dialog({
 
196
            $frame = jQuery.frame_dialog({
197
197
                src: action_url,
198
198
                'class': 'action-dialog'
199
199
            }, null, {
200
200
                width: '90%',
201
201
                height: '95%'
202
202
            });
 
203
            $frame.focus();
203
204
            if (terp_id && !$dialogs.length) {
204
205
                if (jQuery('#_terp_id').val() == 'False') {
205
206
                    // we are opening an action on an unsaved record,