Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
18efb243
Commit
18efb243
authored
May 31, 2013
by
Julien Cigar
Browse files
add AjaxResponse.get_response wrapper around reponseXML / responseText
parent
7868071c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
18efb243
...
@@ -311,6 +311,14 @@
...
@@ -311,6 +311,14 @@
return
this
.
readyStates
[
this
.
o
.
readyState
]
||
'
unknown
'
;
return
this
.
readyStates
[
this
.
o
.
readyState
]
||
'
unknown
'
;
}
}
Yeti
.
AjaxResponse
.
prototype
.
get_response
=
function
()
{
if
(
this
.
o
.
responseXML
)
{
return
this
.
o
.
responseXML
;
}
else
{
return
this
.
o
.
responseText
}
}
Yeti
.
AjaxResponse
.
prototype
.
success
=
function
()
{
Yeti
.
AjaxResponse
.
prototype
.
success
=
function
()
{
return
this
.
get_state
()
==
'
complete
'
&&
this
.
get_status
()
==
'
ok
'
;
return
this
.
get_state
()
==
'
complete
'
&&
this
.
get_status
()
==
'
ok
'
;
}
}
...
...
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