In progress.

This commit is contained in:
cahrens
2013-05-16 10:40:48 -04:00
parent ef14155306
commit 235ecff28b
3 changed files with 8 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ PIPELINE_JS = {
'source_filenames': sorted(
rooted_glob(COMMON_ROOT / 'static/', 'coffee/src/**/*.js') +
rooted_glob(PROJECT_ROOT / 'static/', 'coffee/src/**/*.js')
) + ['js/hesitate.js', 'js/base.js'],
) + ['js/hesitate.js', 'js/base.js', 'js/models/metadata_model.js'],
'output_filename': 'js/cms-application.js',
'test_order': 0
},

View File

@@ -0,0 +1,3 @@
describe "CMS.Models.Metadata", ->
it "has no url", ->
expect(new CMS.Models.Metadata().url).toEqual("/save_item")

View File

@@ -1,6 +1,8 @@
/**
* Model used for metadata setting editors. This model does not do its own saving,
* as that is done by module_edit.coffee.
*/
CMS.Models.Metadata = Backbone.Model.extend({
// This model class is not suited for restful operations and is considered just a server side initialized container
url: '',
defaults: {
"field_name": null,