mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
refactored code to use newer version of backbone.js and underscore.js
This commit is contained in:
@@ -13,8 +13,8 @@ define([
|
||||
"backbone"
|
||||
], function ($, _, Backbone) {
|
||||
var SchedulerView = Backbone.View.extend({
|
||||
template: _.template($('#scheduler_template').html()),
|
||||
initialize: function () {
|
||||
this.template = _.template($('#scheduler_template').html());
|
||||
// render only parts of the model
|
||||
this.model.on('change:configuration', this.renderConfiguration, this);
|
||||
this.model.on('change:actual', this.renderActual, this);
|
||||
|
@@ -13,8 +13,8 @@ define([
|
||||
"backbone"
|
||||
], function ($, _, Backbone) {
|
||||
var TaskView = Backbone.View.extend({
|
||||
template: _.template($('#task_template').html()),
|
||||
initialize: function () {
|
||||
this.template = _.template($('#task_template').html());
|
||||
// render only parts of the model
|
||||
this.model.on('change:id', this.renderId, this);
|
||||
this.model.on('change:configuration', this.renderConfiguration, this);
|
||||
|
Reference in New Issue
Block a user