fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding jshint grunt task
[fnpeditor.git]
/
modules
/
documentHistory
/
documentHistory.js
diff --git
a/modules/documentHistory/documentHistory.js
b/modules/documentHistory/documentHistory.js
index
9a01f16
..
d435617
100644
(file)
--- a/
modules/documentHistory/documentHistory.js
+++ b/
modules/documentHistory/documentHistory.js
@@
-30,6
+30,10
@@
return function(sandbox) {
});
\r
dialog.show();
\r
});
\r
});
\r
dialog.show();
\r
});
\r
+
\r
+ dom.find('.btn.display').click(function(e) {
\r
+ sandbox.publish('displayVersion', {version: historyItems.getSelected()[0]});
\r
+ });
\r
\r
var addHistoryItem = function(item, options) {
\r
historyItems.add(item);
\r
\r
var addHistoryItem = function(item, options) {
\r
historyItems.add(item);
\r
@@
-80,18
+84,18
@@
return function(sandbox) {
var len = this._selected.length;
\r
if(len === 0) {
\r
toggleButton('compare', false);
\r
var len = this._selected.length;
\r
if(len === 0) {
\r
toggleButton('compare', false);
\r
- toggleButton('
show2
', false);
\r
+ toggleButton('
display
', false);
\r
toggleButton('restore', false);
\r
}
\r
if(len === 1) {
\r
toggleButton('compare', false);
\r
toggleButton('restore', false);
\r
}
\r
if(len === 1) {
\r
toggleButton('compare', false);
\r
- toggleButton('
show2
', true);
\r
+ toggleButton('
display
', true);
\r
toggleButton('restore', true);
\r
}
\r
if(len === 2) {
\r
toggleItemViews(false);
\r
toggleButton('compare', true);
\r
toggleButton('restore', true);
\r
}
\r
if(len === 2) {
\r
toggleItemViews(false);
\r
toggleButton('compare', true);
\r
- toggleButton('
show2
', false);
\r
+ toggleButton('
display
', false);
\r
toggleButton('restore', false);
\r
} else {
\r
toggleItemViews(true);
\r
toggleButton('restore', false);
\r
} else {
\r
toggleItemViews(true);
\r