minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-02 00:40:21 +03:00
parent b02abfc940
commit 5646b3fc81

View File

@ -903,7 +903,7 @@ function Feature(obj){
var PartialRibbonsActions = var PartialRibbonsActions =
module.PartialRibbonsActions = module.PartialRibbonsActions =
actions.Actions({ actions.Actions({
updateRibbonSize: ['', updateRibbonSize: ['Update partial ribbon size',
function(target, w, size, threshold){ function(target, w, size, threshold){
target = target instanceof jQuery target = target instanceof jQuery
? this.ribbons.getElemGID(target) ? this.ribbons.getElemGID(target)
@ -911,6 +911,7 @@ actions.Actions({
w = w || this.screenwidth w = w || this.screenwidth
// get config data...
size = size size = size
|| this.config['ribbon-size-screens'] || this.config['ribbon-size-screens']
|| 5 || 5
@ -918,6 +919,7 @@ actions.Actions({
|| this.config['ribbon-resize-threshold'] || this.config['ribbon-resize-threshold']
|| 1 || 1
// normalize to image count...
var s = size * w var s = size * w
var t = threshold * w var t = threshold * w
@ -1057,8 +1059,6 @@ module.ShiftAnimation = Feature({
}) })
// XXX should we keep actions in a closure (like it is done here) or get
// them live as in PartialRibbons???
var BoundsIndicators = var BoundsIndicators =
module.BoundsIndicators = Feature({ module.BoundsIndicators = Feature({
tag: 'ui-bounds-indicators', tag: 'ui-bounds-indicators',
@ -1230,6 +1230,8 @@ module.CurrentImageIndicator = Feature({
that.updateMarker(this, null, w0 > w1 ? 'before' : 'after') that.updateMarker(this, null, w0 > w1 ? 'before' : 'after')
} }
}) })
// XXX not sure about this...
.focusImage()
}, },
remove: function(actions){ remove: function(actions){
actions.viewer.find('.' + this.tag).remove() actions.viewer.find('.' + this.tag).remove()