Commit 7712f213 authored by alexandre's avatar alexandre

Fix tags saving

parent 437adb30
...@@ -1636,7 +1636,8 @@ window.W = window.W || {}; ...@@ -1636,7 +1636,8 @@ window.W = window.W || {};
// Cast tag value into a list // Cast tag value into a list
var tags = this.fieldVal('tags').trim(); var tags = this.fieldVal('tags').trim();
tags = (tags == true) ? tags.split(/\s*,\s*/) : []; tags = (tags != "") ? tags.split(/\s*,\s*/) : [];
tags = _.map(tags, function(s){ return s.trim(); })
var data = { var data = {
title: this.fieldVal('title'), title: this.fieldVal('title'),
......
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