0001-fargo-don-t-create-oversized-validation-dialogs-8960.patch
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 |
- |