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
538f0848
Commit
538f0848
authored
May 28, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Все-таки вернул код на версию с использованием FormData объекта
parent
42d04690
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
etersoft_typos.js
etersoft_typos.js
+12
-2
No files found.
etersoft_typos.js
View file @
538f0848
...
...
@@ -416,6 +416,18 @@ ETYPOS.prototype = {
return
true
;
},
/*Создание формы с данными*/
formData
:
function
()
{
if
(
!
new
FormData
())
{
throw
new
Error
(
"FormData() не поддерживается"
);
}
var
form_data
=
new
FormData
();
for
(
var
key
in
this
.
userdata
)
{
form_data
.
append
(
key
,
this
.
userdata
[
key
]);
}
return
form_data
;
},
/*Отправка запроса*/
ajaxQuery
:
function
()
{
var
this_object
=
this
;
...
...
@@ -556,11 +568,9 @@ ETYPOS.prototype = {
// Вторая таблица - контент
var
content
=
document
.
getElementsByClassName
(
"post"
)[
0
];
if
(
!
content
)
{
return
;
}
var
pageText
=
content
.
innerHTML
;
pageFixes
.
forEach
(
function
(
typo
)
{
var
text
=
typo
.
text
;
...
...
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