[src/recline.js][xs]: remove abortive started new code in this file and add deprecation notice.
This commit is contained in:
parent
e65bc74a88
commit
16903be492
@ -1,41 +1,5 @@
|
||||
window.recline = {};
|
||||
|
||||
recline.Document = Backbone.Model.extend({});
|
||||
|
||||
recline.DocumentList = Backbone.Collection.extend({
|
||||
webStore: new WebStore(this.url),
|
||||
model: recline.Document
|
||||
});
|
||||
|
||||
recline.DataTable = Backbone.View.extend({
|
||||
|
||||
el: ".data-table-container",
|
||||
|
||||
documents: new recline.DocumentList(this.url),
|
||||
|
||||
// template: TODO ???
|
||||
|
||||
events: {
|
||||
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
var that = this;
|
||||
this.documents.fetch({
|
||||
success: function(collection, resp) {
|
||||
that.render()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var template = $( ".dataTableTemplate:first" ).html()
|
||||
, htmls = $.mustache(template, {rows: this.documents.toJSON()} )
|
||||
;
|
||||
$(this.el).html(htmls);
|
||||
return this;
|
||||
}
|
||||
});
|
||||
// Original Recline code - **Deprecated**
|
||||
// Left intact while functionality is transferred across to new Backbone setup
|
||||
|
||||
// var recline = function() {
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user