{% block splitter-extra %}
<div class="vsplitbar" title="{% trans "Click to open/close gallery" %}">
+ <p class="vsplitbar-title"></p>
</div>
<div id="sidebar">
{% include "wiki/tabs/gallery_view.html" %}
{% block dialogs %}
{% include "wiki/save_dialog.html" %}
{% include "wiki/tag_dialog.html" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
bottom: 0;
right: 0;
width: 26px;
- background: #C1C1C1 url(../img/gallery.png) no-repeat scroll center center;
+ /*background: #C1C1C1 url(../img/gallery.png) no-repeat scroll center center;*/
border-left: 2px solid #999;
border-right: 2px solid #999;
- cursor: pointer;
+ cursor: pointer;
+ background: #C1C1C1;
}
.vsplitbar:hover {
- background-color: yellow;
- border-color: orange;
+ background-color: #E6E6E6;
+}
+
+
+.vsplitbar p {
+ -moz-transform: rotate(270deg);
+ -moz-transform-origin: 50% 50%;
+ -webkit-transform: rotate(270deg);
+ -webkit-transform-origin: 50% 50%;
+ -o-transform: rotate(-270deg);
+ -o-transform-origin: bottom left;
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
+ margin: 250px auto;
}
.editor {
function() {
$.wiki.state.perspectives.ScanGalleryPerspective.show = true;
$('#sidebar').show();
+ $(".vsplitbar-title").html("↓ GALLERY ↓");
$('.vsplitbar').css('right', 480).addClass('active');
$('#editor .editor').css('right', 510);
$(window).resize();
$.wiki.state.perspectives.ScanGalleryPerspective.show = false;
$('#sidebar').hide();
$('.vsplitbar').css('right', 0).removeClass('active');
+ if($(".vsplitbar-title").html() == "↓ SEARCH AND REPLACE ↓"){
+ $(".vsplitbar-title").html("↑ SEARCH AND REPLACE ↑");
+ } else {
+ $(".vsplitbar-title").html("↑ GALLERY ↑");
+ }
$('#editor .editor').css('right', 30);
$(window).resize();
$.wiki.perspectiveForTab('#tabs-right .active').onExit();
}
);
- if($.wiki.state.perspectives.ScanGalleryPerspective.show)
- $('.vsplitbar').trigger('click');
-
+ if($.wiki.state.perspectives.ScanGalleryPerspective.show){
+ $('.vsplitbar').trigger('click');
+ $(".vsplitbar-title").html("↓ GALLERY ↓");
+ } else {
+ $(".vsplitbar-title").html("↑ GALLERY ↑");
+ }
window.onbeforeunload = function(e) {
if($.wiki.isDirty()) {
e.returnValue = "Na stronie mogą być nie zapisane zmiany.";
$.wiki.Perspective.prototype.onEnter.call(this);
$('.vsplitbar').not('.active').trigger('click');
-
+ $(".vsplitbar-title").html("↓ GALLERY ↓");
+
this.doc.refreshGallery({
success: function(doc, data){
self.$image.show();
self.$searchCursor = null;
$('.vsplitbar').not('.active').trigger('click');
+ $(".vsplitbar-title").html("↓ SEARCH AND REPLACE ↓");
+
if ($.wiki.activePerspective() != 'CodeMirrorPerspective')
$.wiki.switchToTab('#CodeMirrorPerspective');
};
$.wiki.SearchPerspective = SearchPerspective;
-})(jQuery);
\ No newline at end of file
+})(jQuery);