Add global register feature

Tweak admin field app

Fix typo

Tweaks

Fix typo
This commit is contained in:
Nicolas Le Goff
2013-05-15 17:56:28 +02:00
committed by Romain Neutron
parent 9a9235a15e
commit 0539db7598
28 changed files with 1320 additions and 292 deletions

View File

@@ -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;
}