mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
refactored code to use newer version of backbone.js and underscore.js
This commit is contained in:
@@ -22,6 +22,7 @@ define([
|
||||
"keyup #live_search": "searchAction",
|
||||
"update-sort": "updateSortAction"
|
||||
},
|
||||
template: _.template($("#item_list_view_template").html()),
|
||||
initialize: function () {
|
||||
var self = this;
|
||||
// store all single rendered views
|
||||
@@ -62,9 +63,7 @@ define([
|
||||
});
|
||||
},
|
||||
render: function () {
|
||||
var template = _.template($("#item_list_view_template").html());
|
||||
|
||||
this.$el.empty().html(template);
|
||||
this.$el.empty().html(this.template());
|
||||
|
||||
this.$listEl = $("ul#collection-fields", this.$el);
|
||||
|
||||
|
Reference in New Issue
Block a user