Commit ec7c4724 by swdanielli

Merge pull request #34 from pmitros/danielli/code_review

fix bug
parents 507e1177 5ae820a2
......@@ -666,8 +666,8 @@ function RecommenderXBlock(runtime, element, init_data) {
data['url'] = $('.editUrl', element).val();
data['title'] = $('.editTitle', element).val();
data['descriptionText'] = $('.editDescriptionText', element).val();
data['description'] = ''
if (!data.url || data.title) { return; }
data['description'] = '';
if (!data.url || !data.title) { return; }
var formDiv = $('.editResourceForm', element);
var file = new FormData($(formDiv)[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment