Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
8 years ago
Commit
4f70f6925087d84ab7a527d1187666009a8ffcae
1 parent
3010de1b
粘贴发送修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
public/js/service/clip-paste.js
public/js/service/clip-paste.js
View file @
4f70f69
...
...
@@ -43,6 +43,7 @@ function Paste(sl, cb) {
this
.
uploadCb
=
cb
;
this
.
isSending
=
false
;
this
.
bindEvents
();
this
.
input
=
''
;
}
Paste
.
prototype
=
{
...
...
@@ -50,6 +51,7 @@ Paste.prototype = {
var
self
=
this
;
this
.
$el
.
addEventListener
(
'paste'
,
function
(
e
)
{
self
.
input
=
$
(
'.text.msg-area'
).
val
();
var
cbd
=
e
.
clipboardData
;
var
ua
=
window
.
navigator
.
userAgent
;
...
...
@@ -133,6 +135,7 @@ Paste.prototype = {
var
image
=
new
Image
();
image
.
src
=
base64
;
image
.
onload
=
function
()
{
$
(
'.text.msg-area'
).
val
(
self
.
input
);
_drawPreview
(
base64
);
self
.
open
();
};
...
...
Please
register
or
login
to post a comment