fix Bug 32641 - Окно печати вызывается через раз
This commit is contained in:
parent
7a5d025854
commit
de3250c53a
|
@ -280,6 +280,10 @@ var ApplicationController = new(function(){
|
|||
}
|
||||
|
||||
function onPrintUrl(url) {
|
||||
if (iframePrint) {
|
||||
iframePrint.parentNode.removeChild(iframePrint);
|
||||
iframePrint = null;
|
||||
}
|
||||
if (!iframePrint) {
|
||||
iframePrint = document.createElement("iframe");
|
||||
iframePrint.id = "id-print-frame";
|
||||
|
@ -292,6 +296,8 @@ var ApplicationController = new(function(){
|
|||
iframePrint.onload = function() {
|
||||
iframePrint.contentWindow.focus();
|
||||
iframePrint.contentWindow.print();
|
||||
iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) iframePrint.src = url;
|
||||
|
|
|
@ -1676,6 +1676,10 @@ define([
|
|||
},
|
||||
|
||||
onPrintUrl: function(url) {
|
||||
if (this.iframePrint) {
|
||||
this.iframePrint.parentNode.removeChild(this.iframePrint);
|
||||
this.iframePrint = null;
|
||||
}
|
||||
if (!this.iframePrint) {
|
||||
var me = this;
|
||||
this.iframePrint = document.createElement("iframe");
|
||||
|
@ -1689,6 +1693,8 @@ define([
|
|||
this.iframePrint.onload = function() {
|
||||
me.iframePrint.contentWindow.focus();
|
||||
me.iframePrint.contentWindow.print();
|
||||
me.iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) this.iframePrint.src = url;
|
||||
|
|
|
@ -278,6 +278,10 @@ var ApplicationController = new(function(){
|
|||
}
|
||||
|
||||
function onPrintUrl(url) {
|
||||
if (iframePrint) {
|
||||
iframePrint.parentNode.removeChild(iframePrint);
|
||||
iframePrint = null;
|
||||
}
|
||||
if (!iframePrint) {
|
||||
iframePrint = document.createElement("iframe");
|
||||
iframePrint.id = "id-print-frame";
|
||||
|
@ -290,6 +294,8 @@ var ApplicationController = new(function(){
|
|||
iframePrint.onload = function() {
|
||||
iframePrint.contentWindow.focus();
|
||||
iframePrint.contentWindow.print();
|
||||
iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) iframePrint.src = url;
|
||||
|
|
|
@ -1453,6 +1453,10 @@ define([
|
|||
},
|
||||
|
||||
onPrintUrl: function(url) {
|
||||
if (this.iframePrint) {
|
||||
this.iframePrint.parentNode.removeChild(this.iframePrint);
|
||||
this.iframePrint = null;
|
||||
}
|
||||
if (!this.iframePrint) {
|
||||
var me = this;
|
||||
this.iframePrint = document.createElement("iframe");
|
||||
|
@ -1466,6 +1470,8 @@ define([
|
|||
this.iframePrint.onload = function() {
|
||||
me.iframePrint.contentWindow.focus();
|
||||
me.iframePrint.contentWindow.print();
|
||||
me.iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) this.iframePrint.src = url;
|
||||
|
|
|
@ -247,6 +247,10 @@ var ApplicationController = new(function(){
|
|||
}
|
||||
|
||||
function onPrintUrl(url) {
|
||||
if (iframePrint) {
|
||||
iframePrint.parentNode.removeChild(iframePrint);
|
||||
iframePrint = null;
|
||||
}
|
||||
if (!iframePrint) {
|
||||
iframePrint = document.createElement("iframe");
|
||||
iframePrint.id = "id-print-frame";
|
||||
|
@ -259,6 +263,8 @@ var ApplicationController = new(function(){
|
|||
iframePrint.onload = function() {
|
||||
iframePrint.contentWindow.focus();
|
||||
iframePrint.contentWindow.print();
|
||||
iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) iframePrint.src = url;
|
||||
|
|
|
@ -1658,6 +1658,10 @@ define([
|
|||
},
|
||||
|
||||
onPrintUrl: function(url) {
|
||||
if (this.iframePrint) {
|
||||
this.iframePrint.parentNode.removeChild(this.iframePrint);
|
||||
this.iframePrint = null;
|
||||
}
|
||||
if (!this.iframePrint) {
|
||||
var me = this;
|
||||
this.iframePrint = document.createElement("iframe");
|
||||
|
@ -1671,6 +1675,8 @@ define([
|
|||
this.iframePrint.onload = function() {
|
||||
me.iframePrint.contentWindow.focus();
|
||||
me.iframePrint.contentWindow.print();
|
||||
me.iframePrint.contentWindow.blur();
|
||||
window.focus();
|
||||
};
|
||||
}
|
||||
if (url) this.iframePrint.src = url;
|
||||
|
|
Loading…
Reference in a new issue