Browse Source

Bug inline filter bug

master
Patxi Pierce 2 years ago
parent
commit
8ac7b49d8f
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      rasyen.js
  2. +1
    -1
      rasyen.min.js

+ 4
- 4
rasyen.js View File

@@ -177,20 +177,20 @@ var Rasyen = {

// %['json','string']=inline=list-name% - Will parse an in line list and save it
'inline' : function(list){
// Find a list to save (if any)
var list_name = list.parsed_filters[list.parsed_filters.indexOf('inline')+1];
var list_data = false;

// Check to see if its valid JSON
try{
list_data = JSON.parse(list.name);
var list_data = JSON.parse(list.name);
}catch(e){
Rasyen.callback.on_error({
evt : e,
msg : 'Invalid JSON',
msg : 'Invalid JSON in inline filter.'
});
}

if(list_data){
if(typeof list_data == 'object'){
if(typeof list_name != 'undefined'){
list.name = list_name;
Rasyen.list_load(list_name, list_data);


+ 1
- 1
rasyen.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save