fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cover quick import fix.
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
view_gallery.js
diff --git
a/src/redakcja/static/js/wiki/view_gallery.js
b/src/redakcja/static/js/wiki/view_gallery.js
index
65a716a
..
e04342f
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_gallery.js
+++ b/
src/redakcja/static/js/wiki/view_gallery.js
@@
-47,7
+47,6
@@
function ScanGalleryPerspective(options){
var old_callback = options.callback || function() { };
function ScanGalleryPerspective(options){
var old_callback = options.callback || function() { };
- this.noupdate_hash_onenter = true;
this.vsplitbar = 'GALERIA';
options.callback = function(){
this.vsplitbar = 'GALERIA';
options.callback = function(){
@@
-109,10
+108,10
@@
old_callback.call(this);
};
old_callback.call(this);
};
- $.wiki.Perspective.call(this, options);
+ $.wiki.
Sidebar
Perspective.call(this, options);
};
};
- ScanGalleryPerspective.prototype = new $.wiki.Perspective();
+ ScanGalleryPerspective.prototype = new $.wiki.
Sidebar
Perspective();
ScanGalleryPerspective.prototype._resizeImage = function(){
var $img = this.$image;
ScanGalleryPerspective.prototype._resizeImage = function(){
var $img = this.$image;
@@
-224,13
+223,10
@@
* Loading gallery
*/
ScanGalleryPerspective.prototype.onEnter = function(success, failure){
* Loading gallery
*/
ScanGalleryPerspective.prototype.onEnter = function(success, failure){
-
var self = this
;
+
$.wiki.SidebarPerspective.prototype.onEnter.call(this)
;
-
$.wiki.Perspective.prototype.onEnter.call(this)
;
+
var self = this
;
- $('.vsplitbar').not('.active').trigger('click');
- $(".vsplitbar-title").html("↓ GALERIA ↓");
-
this.doc.refreshGallery({
success: function(doc, data){
self.$image.show();
this.doc.refreshGallery({
success: function(doc, data){
self.$image.show();