apostrophe-snippets
Advanced tools
Comparing version 0.0.39 to 0.0.40
@@ -292,3 +292,3 @@ var async = require('async'); | ||
self.afterSave(req, data, snippet, callback); | ||
}, | ||
} | ||
], callback); | ||
@@ -1112,2 +1112,4 @@ } catch (e) { | ||
req.extras.allTags = results.tags; | ||
// Make the filter metadata (like tag lists) available to the template | ||
@@ -1114,0 +1116,0 @@ req.extras.filters = _.omit(results, 'snippets'); |
{ | ||
"name": "apostrophe-snippets", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "Reusable content snippets for the Apostrophe content management system. The blog and events modules are built on this foundation, which is also useful in and of itself.", | ||
@@ -31,2 +31,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -439,12 +439,5 @@ // NOTES FOR REUSE: | ||
// TODO: this boolean field prep stuff is done often enough to belong | ||
// in editor.js | ||
var published = snippet.published; | ||
if (published === undefined) { | ||
published = 1; | ||
} else { | ||
// Simple POST friendly boolean values | ||
published = published ? '1' : '0'; | ||
} | ||
$el.find('[name=published]').val(published); | ||
// Boolean fields must get an explicit '1' or '0' for | ||
// the select element | ||
$el.find('[name=published]').val(snippet.published ? '1' : '0'); | ||
@@ -451,0 +444,0 @@ // name=slug must always exist, at least as a hidden field, to support this |
136741
1944