Revision 627cd13b
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
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