fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: extracting core transformations continued - detfineDocumentProperties from core
[fnpeditor.git]
/
src
/
editor
/
modules
/
data
/
saveDialog.js
diff --git
a/src/editor/modules/data/saveDialog.js
b/src/editor/modules/data/saveDialog.js
index
90832e6
..
e1f49b4
100644
(file)
--- a/
src/editor/modules/data/saveDialog.js
+++ b/
src/editor/modules/data/saveDialog.js
@@
-1,9
+1,10
@@
define([
'libs/text!./saveDialog.html',
'libs/underscore',
define([
'libs/text!./saveDialog.html',
'libs/underscore',
-'libs/backbone',
-'libs/jquery'
-], function(saveDialogTemplate, _, Backbone, $) {
+'libs/backbone'
+], function(saveDialogTemplate, _, Backbone) {
+
+ 'use strict';
var DialogView = Backbone.View.extend({
template: _.template(saveDialogTemplate),
var DialogView = Backbone.View.extend({
template: _.template(saveDialogTemplate),
@@
-16,7
+17,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');
@@
-33,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();