application/js/content.js in spontaneous-0.2.0.beta4 vs application/js/content.js in spontaneous-0.2.0.beta5
- old
+ new
@@ -23,11 +23,11 @@
target: function() {
return this.content.target;
},
developer_description: function() {
- return this.type().type + "["+this.id()+']'
+ return this.type().type + "["+this.id()+']';
},
developer_edit_url: function() {
return this.type().edit_url();
},
type: function() {
@@ -66,11 +66,19 @@
// fields that should be listed in the main field column
text_fields: function() {
return this.filter_fields(function(f) { return !f.is_image(); });
},
// fields that should be saved as strings
- string_fields: function() {
- return this.filter_fields(function(f) { return !f.is_file(); });
+ string_values: function() {
+ var i, ii, v, values = [], fields = this.field_list();
+ for (i = 0, ii = fields.length; i < ii; i++) {
+ v = fields[i].stringValue();
+ if (v) {
+ values.push(v);
+ }
+ }
+ // return this.filter_fields(function(f) { return !f.is_file(); });
+ return values;
},
image_fields: function() {
return this.filter_fields(function(f) { return f.is_image(); });
},
file_fields: function() {