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
1ce369cd
Commit
1ce369cd
authored
Oct 31, 2016
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] removed ZeroClipboard library
parent
e50396f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
62 deletions
+7
-62
apps/documenteditor/embed/index.html
apps/documenteditor/embed/index.html
+0
-1
apps/documenteditor/embed/js/ApplicationController.js
apps/documenteditor/embed/js/ApplicationController.js
+7
-45
build/documenteditor.json
build/documenteditor.json
+0
-16
No files found.
apps/documenteditor/embed/index.html
View file @
1ce369cd
...
...
@@ -319,7 +319,6 @@
<script
type=
"text/javascript"
src=
"../../../vendor/jquery/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/jquery.browser/dist/jquery.browser.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/bootstrap/dist/js/bootstrap.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/ZeroClipboard/ZeroClipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/sockjs/sockjs.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/xregexp/xregexp-all-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../../vendor/jszip/jszip.min.js"
></script>
...
...
apps/documenteditor/embed/js/ApplicationController.js
View file @
1ce369cd
...
...
@@ -61,16 +61,6 @@ var ApplicationController = new(function(){
}
// Initialize ZeroClipboard
// -------------------------
ZeroClipboard
.
setMoviePath
(
'
../../../vendor/ZeroClipboard/ZeroClipboard10.swf
'
);
var
clipShortUrl
=
new
ZeroClipboard
.
Client
();
var
clipEmbedObj
=
new
ZeroClipboard
.
Client
();
clipShortUrl
.
zIndex
=
maxZIndex
;
clipEmbedObj
.
zIndex
=
maxZIndex
;
// Utils
// -------------------------
...
...
@@ -315,6 +305,13 @@ var ApplicationController = new(function(){
handlerToolbarSize
();
hidePreloader
();
function
_copytext
(
el
,
event
)
{
el
.
select
();
if
(
!
document
.
execCommand
(
'
copy
'
)
)
{
window
.
alert
(
'
Browser
\'
s error! Use keyboard shortcut [Ctrl] + [C]
'
);
}
}
Common
.
Analytics
.
trackEvent
(
'
Load
'
,
'
Complete
'
);
}
...
...
@@ -556,41 +553,6 @@ var ApplicationController = new(function(){
var
documentMoveTimer
;
// Initialize clipboard objects
clipShortUrl
.
addEventListener
(
'
mousedown
'
,
function
()
{
if
(
$
(
'
#id-btn-copy-short
'
).
hasClass
(
'
copied
'
))
return
;
$
(
'
#id-btn-copy-short
'
).
button
(
'
copied
'
);
$
(
'
#id-btn-copy-short
'
).
addClass
(
'
copied
'
);
clipShortUrl
.
setText
(
$
(
'
#id-short-url
'
).
val
());
setTimeout
(
function
(){
$
(
'
#id-btn-copy-short
'
).
button
(
'
reset
'
);
$
(
'
#id-btn-copy-short
'
).
removeClass
(
'
copied
'
);
},
2000
);
});
clipEmbedObj
.
addEventListener
(
'
mousedown
'
,
function
(){
if
(
$
(
'
#id-btn-copy-embed
'
).
hasClass
(
'
copied
'
))
return
;
$
(
'
#id-btn-copy-embed
'
).
button
(
'
copied
'
);
$
(
'
#id-btn-copy-embed
'
).
addClass
(
'
copied
'
);
clipEmbedObj
.
setText
(
$
(
'
#id-textarea-embed
'
).
text
());
setTimeout
(
function
(){
$
(
'
#id-btn-copy-embed
'
).
button
(
'
reset
'
);
$
(
'
#id-btn-copy-embed
'
).
removeClass
(
'
copied
'
);
},
2000
);
});
clipShortUrl
.
glue
(
'
id-btn-copy-short
'
);
clipEmbedObj
.
glue
(
'
id-btn-copy-embed
'
);
// popover ui handlers
...
...
build/documenteditor.json
View file @
1ce369cd
...
...
@@ -483,21 +483,6 @@
"dest"
:
"../deploy/web-apps/vendor/requirejs/require.js"
}
},
"zeroclipboard"
:
{
"clean"
:
[
"../deploy/web-apps/vendor/ZeroClipboard"
],
"copy"
:
{
"script"
:
{
"expand"
:
true
,
"cwd"
:
"../vendor/ZeroClipboard/"
,
"src"
:
[
"**"
],
"dest"
:
"../deploy/web-apps/vendor/ZeroClipboard/"
}
}
},
"obf_api"
:
{
"ccvars"
:
"../../sdkjs/word/variable.map"
,
"ccprops"
:
"../../sdkjs/word/property.map"
,
...
...
@@ -535,7 +520,6 @@
"deploy-touch"
,
"deploy-jquery"
,
"deploy-underscore"
,
"deploy-zeroclipboard"
,
"deploy-bootstrap"
,
"deploy-jszip"
,
"deploy-jsziputils"
,
...
...
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