Update to enabled calculations to be put into entity

This commit is contained in:
Neil Lathwood 2014-12-19 20:30:51 +00:00
parent 1df57b7254
commit 7cd8cf7ecf

View File

@ -181,7 +181,11 @@ $('#and, #or').click('', function(e) {
strategy: 'array', strategy: 'array',
tagFieldName: 'rules[]' tagFieldName: 'rules[]'
}); });
$('#response').data('tagmanager').populate([ '%'+entity+' '+condition+' "'+value+'" '+glue ]); if(entity.indexOf("%") >= 0) {
$('#response').data('tagmanager').populate([ entity+' '+condition+' '+value+' '+glue ]);
} else {
$('#response').data('tagmanager').populate([ '%'+entity+' '+condition+' "'+value+'" '+glue ]);
}
} }
}); });