mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
838e589557
commit
be8d582be5
@ -765,14 +765,22 @@ var RibbonsPrototype = {
|
||||
// -> ribbon-set
|
||||
//
|
||||
getRibbonSet: function(create){
|
||||
// ribbon set...
|
||||
var ribbon_set = this.viewer.find('.ribbon-set')
|
||||
if(ribbon_set.length == 0 && create){
|
||||
if(create && ribbon_set.length == 0){
|
||||
ribbon_set = $('<div/>')
|
||||
.addClass('ribbon-set')
|
||||
.append($('<div/>')
|
||||
.addClass('ribbon-locator'))
|
||||
.appendTo(this.viewer)
|
||||
}
|
||||
|
||||
// ribbon locator...
|
||||
var locator = ribbon_set.find('.ribbon-locator')
|
||||
if(create && locator.length == 0){
|
||||
ribbon_set
|
||||
.append($('<div/>')
|
||||
.addClass('ribbon-locator'))
|
||||
}
|
||||
|
||||
return ribbon_set
|
||||
},
|
||||
getRibbonLocator: function(create){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user