mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
refactored code to use newer version of backbone.js and underscore.js
This commit is contained in:
@@ -20,6 +20,7 @@ define([
|
||||
events: {
|
||||
"click .confirm": "confirmAction"
|
||||
},
|
||||
template: _.template($("#modal_template").html()),
|
||||
initialize: function (options) {
|
||||
var self = this;
|
||||
// remove view when modal is closed
|
||||
@@ -32,11 +33,7 @@ define([
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
var template = _.template($("#modal_template").html(), {
|
||||
msg: this.message || ""
|
||||
});
|
||||
|
||||
this.$el.html(template).modal();
|
||||
this.$el.html(this.template({msg: this.message || ""})).modal();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
Reference in New Issue
Block a user