fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some chunk management automation
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
view_history.js
diff --git
a/redakcja/static/js/wiki/view_history.js
b/redakcja/static/js/wiki/view_history.js
index
d35a8da
..
4fe20e2
100644
(file)
--- a/
redakcja/static/js/wiki/view_history.js
+++ b/
redakcja/static/js/wiki/view_history.js
@@
-16,7
+16,7
@@
});
$('#doc-revert-button').click(function() {
});
$('#doc-revert-button').click(function() {
- self.revertD
ocumentToVersion
();
+ self.revertD
ialog
();
});
$('#open-preview-button').click(function(event) {
});
$('#open-preview-button').click(function(event) {
@@
-109,9
+109,9
@@
stub: $stub,
data: this,
filters: {
stub: $stub,
data: this,
filters: {
-
tag: function(value) {
-
return tags.filter("*[value='"+value+"']").text();
-
}
+
//
tag: function(value) {
+
//
return tags.filter("*[value='"+value+"']").text();
+
//
}
// description: function(value) {
// return value.replace('\n', ');
// }
// description: function(value) {
// return value.replace('\n', ');
// }
@@
-172,7
+172,8
@@
});
};
});
};
- HistoryPerspective.prototype.revertDocumentToVersion = function(){
+ HistoryPerspective.prototype.revertDialog = function(){
+ var self = this;
var selected = $('#changes-list .entry.selected');
if (selected.length != 1) {
var selected = $('#changes-list .entry.selected');
if (selected.length != 1) {
@@
-181,7
+182,7
@@
}
var version = parseInt($("*[data-stub-value='version']", selected[0]).text());
}
var version = parseInt($("*[data-stub-value='version']", selected[0]).text());
-
this.doc.revertToVersion({'revision'
: version});
+
$.wiki.showDialog('#revert_dialog', {revision
: version});
};
$.wiki.HistoryPerspective = HistoryPerspective;
};
$.wiki.HistoryPerspective = HistoryPerspective;