diff -r 19f87d783168 -r bec6bba21c2b client/js/paper-renderer.js --- a/client/js/paper-renderer.js Mon Feb 17 17:20:30 2014 +0100 +++ b/client/js/paper-renderer.js Mon Feb 17 17:38:17 2014 +0100 @@ -1794,49 +1794,13 @@ bindClick(".Rk-ZoomOut", "zoomOut"); bindClick(".Rk-ZoomIn", "zoomIn"); bindClick(".Rk-ZoomFit", "autoScale"); - this.$.find(".Rk-ZoomSet").click( function() { _this.$.find(".Rk-ZoomSetContainer").toggle(); } ); - this.$.find(".Rk-ZoomSlider").slider({ - orientation: "vertical", - value:8, - min: 1, - max: 16, - step: 1, - slide: function( event, ui ) { - _this.$.find(".Rk-ZoomSetValue").val( ui.value ); - }, - change: function( event, ui ) { - _this.$.find(".Rk-ZoomSetValue").val( ui.value ); - }, - stop: function( event, ui ) { - _this.$.find(".Rk-ZoomSetValue").val( ui.value ); - // Get value - var current_zoom = parseInt(_this.$.find(".Rk-ZoomSetValue").val()), - nb_step = 0, - mid_step = (_SCALE_STEPS/2), - scale_factor = 1; - if(current_zoom < mid_step){ - nb_step = mid_step - current_zoom; - scale_factor = Math.SQRT1_2; - } - else if(current_zoom > mid_step){ - nb_step = current_zoom - mid_step; - scale_factor = Math.SQRT2; - } - var _newScale = _this.initialScale; - for(var i=0;i
' + '<% if (options.show_bins) { %>
«
<% } %>' + '
">
">
">
' - + '
">
' - + '

">

' + + '
">
">
' + '
' ), fixSize: function(_autoscale) {