fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smartxml: transaction rollback fix
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentHistory
/
documentHistory.js
diff --git
a/src/editor/modules/documentHistory/documentHistory.js
b/src/editor/modules/documentHistory/documentHistory.js
index
b90fc59
..
7bbf32f
100644
(file)
--- a/
src/editor/modules/documentHistory/documentHistory.js
+++ b/
src/editor/modules/documentHistory/documentHistory.js
@@
-1,10
+1,9
@@
define([
'libs/jquery',
'libs/underscore',
define([
'libs/jquery',
'libs/underscore',
-'./restoreDialog',
'libs/text!./templates/main.html',
'libs/text!./templates/item.html'
'libs/text!./templates/main.html',
'libs/text!./templates/item.html'
-], function($, _,
restoreDialog,
mainTemplateSrc, itemTemplateSrc) {
+], function($, _, mainTemplateSrc, itemTemplateSrc) {
'use strict';
'use strict';
@@
-23,12
+22,7
@@
return function(sandbox) {
});
dom.find('.btn.restore').click(function() {
});
dom.find('.btn.restore').click(function() {
- var dialog = restoreDialog.create();
- dialog.on('restore', function(event) {
- sandbox.publish('restoreVersion', {version: historyItems.getSelected()[0], description: event.data.description});
- event.success();
- });
- dialog.show();
+ sandbox.publish('restoreVersion', historyItems.getSelected()[0]);
});
dom.find('.btn.display').click(function() {
});
dom.find('.btn.display').click(function() {