Projet

Général

Profil

0001-fargo-don-t-create-oversized-validation-dialogs-8960.patch

Frédéric Péters, 12 novembre 2015 11:44

Télécharger (1,08 ko)

Voir les différences:

Subject: [PATCH] fargo: don't create oversized validation dialogs (#8960)

 wcs/qommon/static/js/fargo.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
wcs/qommon/static/js/fargo.js
15 15
    e.preventDefault();
16 16
    var src = $(e.target).attr('href');
17 17
    var title = $(e.target).data("title");
18
    var width = $(e.target).data("width");
19
    var height = $(e.target).data("height");
20 18
    iframe.attr({
21
        width: parseInt(width),
22
        height: parseInt(height),
23 19
        src: src
24 20
    });
21
    iframe.css({'width': '100%', 'min-height': '25em'});
25 22
    iframe.on('load', function() {
26 23
      iframe.off('load');
27 24
      iframe[0].contentWindow.postMessage(JSON.stringify({'message': 'helloFargo'}), '*');
28
-