fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas - fix problem with detaching empty text nodes
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentHistory
/
restoreDialog.js
diff --git
a/src/editor/modules/documentHistory/restoreDialog.js
b/src/editor/modules/documentHistory/restoreDialog.js
index
2bf16f6
..
a05b50f
100644
(file)
--- a/
src/editor/modules/documentHistory/restoreDialog.js
+++ b/
src/editor/modules/documentHistory/restoreDialog.js
@@
-1,9
+1,11
@@
define([
'libs/text!./templates/restoreDialog.html',
'libs/underscore',
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),
var DialogView = Backbone.View.extend({
template: _.template(restoreDialogTemplate),
@@
-16,7
+18,7
@@
define([
_.bindAll(this);
this.actionsDisabled = false;
},
_.bindAll(this);
this.actionsDisabled = false;
},
- show: function() {
+ show: function() {
this.setElement(this.template());
this.$el.modal({backdrop: 'static'});
this.$el.modal('show');
this.setElement(this.template());
this.$el.modal({backdrop: 'static'});
this.$el.modal('show');
@@
-32,8
+34,9
@@
define([
});
},
close: function(e) {
});
},
close: function(e) {
- if(e)
+ if(e)
{
e.preventDefault();
e.preventDefault();
+ }
if(!this.actionsDisabled) {
this.$el.modal('hide');
this.$el.remove();
if(!this.actionsDisabled) {
this.$el.modal('hide');
this.$el.remove();