~neobis/openerp-web/7.0

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/views.js

  • Committer: Elias Hermoso Illera
  • Date: 2013-08-14 15:10:04 UTC
  • mfrom: (3979.1.33 7.0)
  • Revision ID: elias@neobis.nl-20130814151004-gl9llvzoqd9xaomt
[MRG] - Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
        }).then(function(res) {
471
471
            action = _.clone(action);
472
472
            action.context = res.context;
 
473
 
 
474
            // iOS devices doesn't allow iframe use the way we do it,
 
475
            // opening a new window seems the best way to workaround
 
476
            if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
 
477
                var params = {
 
478
                    action: JSON.stringify(action),
 
479
                    token: new Date().getTime()
 
480
                }
 
481
                var url = self.session.url('/web/report', params)
 
482
                instance.web.unblockUI();
 
483
                $('<a href="'+url+'" target="_blank"></a>')[0].click();
 
484
                return;
 
485
            }
 
486
 
473
487
            var c = instance.webclient.crashmanager;
474
488
            return $.Deferred(function (d) {
475
489
                self.session.get_file({