mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
Add global register feature
Tweak admin field app Fix typo Tweaks Fix typo
This commit is contained in:

committed by
Romain Neutron

parent
9a9235a15e
commit
0539db7598
@@ -1,9 +1,10 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'i18n',
|
||||
'bootstrap'
|
||||
], function(_, Backbone, i18n, bootstrap) {
|
||||
"jquery",
|
||||
"underscore",
|
||||
"backbone",
|
||||
"i18n",
|
||||
"bootstrap"
|
||||
], function($, _, Backbone, i18n, bootstrap) {
|
||||
var AlertView = Backbone.View.extend({
|
||||
tagName: "div",
|
||||
className: "alert",
|
||||
@@ -15,7 +16,7 @@ define([
|
||||
this.message = options.message || "";
|
||||
}
|
||||
// remove view when alert is closed
|
||||
this.$el.bind('closed', function () {
|
||||
this.$el.bind("closed", function () {
|
||||
self.remove();
|
||||
});
|
||||
},
|
||||
@@ -26,7 +27,7 @@ define([
|
||||
|
||||
this.$el.addClass("alert-" + this.alert).html(template).alert();
|
||||
|
||||
$('.block-alert').empty().append(this.$el);
|
||||
$(".block-alert").empty().append(this.$el);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user