Ghost/core/client/models/widget.js
John O'Nolan d1957958e3 Cleanup indentation and quotes
Aligns all requirements vertically for easier reading + adds single quote standard consistently throughout Ghost, except in long strings.
2013-09-26 15:06:31 +01:00

43 lines
1.1 KiB
JavaScript

/*global window, document, Ghost, $, _, Backbone */
(function () {
'use strict';
Ghost.Models.Widget = Backbone.Model.extend({
defaults: {
title: '',
name: '',
author: '',
applicationID: '',
size: '',
content: {
template: '',
data: {
number: {
count: 0,
sub: {
value: 0,
dir: '', // "up" or "down"
item: '',
period: ''
}
}
}
},
settings: {
settingsPane: false,
enabled: false,
options: [{
title: 'ERROR',
value: 'Widget options not set'
}]
}
}
});
Ghost.Collections.Widgets = Backbone.Collection.extend({
// url: Ghost.settings.apiRoot + '/widgets/', // What will this be?
model: Ghost.Models.Widget
});
}());