Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-webclient
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-webclient
Commits
f976ec86
Commit
f976ec86
authored
May 16, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: забираем текст при вызове
parent
cf376127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
etersoft_typos2.js
etersoft_typos2.js
+16
-13
No files found.
etersoft_typos2.js
View file @
f976ec86
...
...
@@ -18,10 +18,11 @@ var ETY = {
select_text
:
""
,
//Выделенный текст
get_select_text
:
function
()
{
ETY
.
select_
text
=
String
(
window
.
getSelection
()).
trim
().
substr
(
0
,
50
);
if
(
typeof
(
ETY
.
select_
text
)
==
'undefined'
)
{
ETY
.
select_
text
=
""
;
var
text
=
String
(
window
.
getSelection
()).
trim
().
substr
(
0
,
50
);
if
(
typeof
(
text
)
==
'undefined'
)
{
text
=
""
;
}
return
text
;
},
control_panel
:
function
()
{
...
...
@@ -29,11 +30,7 @@ var ETY = {
this
.
close
();
}
else
{
this
.
div
();
/*ETY.get_select_text();
if (ETY.select_text != "") {
ETY.text(ETY.select_text);
}*/
ETY
.
select_text
=
ETY
.
get_select_text
();
}
},
...
...
@@ -57,12 +54,18 @@ var ETY = {
post_data
:
function
()
{
var
this_url
=
window
.
location
.
href
;
//Текущая страница
ETY
.
get_select_text
()
;
post_text
=
ETY
.
select_text
;
/*if (post_text.length == 0) {
ETY.get_select_text();
var
post_text
;
if
(
ETY
.
select_text
==
""
)
{
post_text
=
ETY
.
get_select_text
();
}
else
{
post_text
=
ETY
.
select_text
;
}*/
}
var
new_text
=
ETY
.
get_select_text
();
if
(
new_text
!=
ETY
.
select_text
&&
new_text
.
length
!=
0
)
{
post_text
=
new_text
;
}
//Выделенный текст
var
user_comment
=
document
.
getElementById
(
"e_typos_comment"
).
value
.
trim
().
substr
(
0
,
50
);
...
...
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