define([
'libs/text!./templates/restoreDialog.html',
'libs/underscore',
-'libs/backbone',
-'libs/jquery'
-], function(restoreDialogTemplate, _, Backbone, $) {
+'libs/backbone'
+], function(restoreDialogTemplate, _, Backbone) {
+
+ 'use strict';
+
var DialogView = Backbone.View.extend({
template: _.template(restoreDialogTemplate),
_.bindAll(this);
this.actionsDisabled = false;
},
- show: function() {
+ show: function() {
this.setElement(this.template());
this.$el.modal({backdrop: 'static'});
this.$el.modal('show');
});
},
close: function(e) {
- if(e)
+ if(e) {
e.preventDefault();
+ }
if(!this.actionsDisabled) {
this.$el.modal('hide');
this.$el.remove();