Project

General

Profile

Revision 627cd13b

ID627cd13bc10cc700fc4471d23676fbb8bd2f24c0
Parent 0d87991d
Child a4dfb6e7

Added by Francois POIROTTE over 13 years ago

Il faut attendre que la fenêtre soit chargée avant de pouvoir lancer l'impression (#337).
Qui plus est, le addEvent de mootools ne semble pas fonctionner correctement sur une fenêtre créée dynamiquement.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5255 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigigraph/public/js/graph.js
276 276
        var uri = new URI(app_path + 'rpc/graphsList');
277 277
        uri.setData({graphs: [this.getPrintParams()]});
278 278
        var print_window = window.open(uri.toString());
279
        print_window.print();
279
        print_window.onload = function () {
280
            this.print();
281
        }.bind(print_window);
280 282
    },
281 283

  
282 284
    updateGraph: function () {

Also available in: Unified diff