fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed requirements. Rewrote deployment script to use github.
[redakcja.git]
/
platforma
/
static
/
js
/
wiki
/
diff_view.js
diff --git
a/platforma/static/js/wiki/diff_view.js
b/platforma/static/js/wiki/diff_view.js
index
3eafd13
..
d6e71a6
100644
(file)
--- a/
platforma/static/js/wiki/diff_view.js
+++ b/
platforma/static/js/wiki/diff_view.js
@@
-1,8
+1,11
@@
(function($){
function DiffPerspective(options) {
(function($){
function DiffPerspective(options) {
- var old_callback = options.callback || function() {};
+ var old_callback = options.callback || function() {};
+ var self = this;
+
options.callback = function(){
options.callback = function(){
+ self.base_id = options.base_id;
old_callback.call(this);
};
old_callback.call(this);
};
@@
-15,9
+18,13
@@
// must
};
// must
};
+ DiffPerspective.prototype.destroy = function() {
+ $('#' + this.base_id).remove();
+ $('#' + this.perspective_id).remove();
+ };
+
DiffPerspective.prototype.onEnter = function(success, failure){
$.wiki.Perspective.prototype.onEnter.call(this);
DiffPerspective.prototype.onEnter = function(success, failure){
$.wiki.Perspective.prototype.onEnter.call(this);
-
console.log("Entered diff view");
};
console.log("Entered diff view");
};