mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Change eval() to JSON.parse() in filebox.js #2266
This commit is contained in:
parent
828aa04a22
commit
72b862c27e
1 changed files with 8 additions and 5 deletions
|
|
@ -87,7 +87,6 @@ function addRow(){
|
|||
var count = $last.data('count') + 1;
|
||||
var $clone = $last.clone().data('count', count);
|
||||
|
||||
|
||||
$last.find('.__addBtn').hide();
|
||||
|
||||
$clone.find('.__attribute_name').attr('value', '').attr("id", "attribute_name"+count);
|
||||
|
|
@ -140,8 +139,12 @@ jQuery(document).ready(function($){
|
|||
if (!content) {
|
||||
content = window.iframeTarget.document.getElementsByTagName('body');
|
||||
}
|
||||
var data = eval('(' + $(content).html() + ')');
|
||||
if (!content) {
|
||||
alert('Error');
|
||||
return;
|
||||
}
|
||||
|
||||
var data = JSON.parse($.trim($(content).html()));
|
||||
if (data.error){
|
||||
alert(data.message);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue