kopia lustrzana https://github.com/wagtail/wagtail
Replace $.parseJSON with JSON.parse
rodzic
cd9cb66ca6
commit
9a2b1ee454
|
@ -39,7 +39,7 @@ function initTable(id, tableOptions) {
|
|||
}
|
||||
|
||||
try {
|
||||
dataForForm = $.parseJSON(hiddenStreamInput.val());
|
||||
dataForForm = JSON.parse(hiddenStreamInput.val());
|
||||
} catch (e) {
|
||||
// do nothing
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ $(function() {
|
|||
|
||||
done: function(e, data) {
|
||||
var itemElement = $(data.context);
|
||||
var response = $.parseJSON(data.result);
|
||||
var response = JSON.parse(data.result);
|
||||
|
||||
if (response.success) {
|
||||
itemElement.addClass('upload-success')
|
||||
|
|
|
@ -99,7 +99,7 @@ $(function() {
|
|||
|
||||
done: function(e, data) {
|
||||
var itemElement = $(data.context);
|
||||
var response = $.parseJSON(data.result);
|
||||
var response = JSON.parse(data.result);
|
||||
|
||||
if (response.success) {
|
||||
itemElement.addClass('upload-success')
|
||||
|
|
Ładowanie…
Reference in New Issue