Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
de3250c5
Commit
de3250c5
authored
Jun 09, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug 32641 - Окно печати вызывается через раз
parent
7a5d0258
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
0 deletions
+36
-0
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+6
-0
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+6
-0
apps/presentationeditor/embed/js/ApplicationController.js
apps/presentationeditor/embed/js/ApplicationController.js
+6
-0
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+6
-0
apps/spreadsheeteditor/embed/js/ApplicationController.js
apps/spreadsheeteditor/embed/js/ApplicationController.js
+6
-0
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+6
-0
No files found.
apps/documenteditor/embed/js/ApplicationController.js
View file @
de3250c5
...
...
@@ -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
;
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
de3250c5
...
...
@@ -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
;
...
...
apps/presentationeditor/embed/js/ApplicationController.js
View file @
de3250c5
...
...
@@ -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
;
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
de3250c5
...
...
@@ -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
;
...
...
apps/spreadsheeteditor/embed/js/ApplicationController.js
View file @
de3250c5
...
...
@@ -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
;
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
de3250c5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment