Typesetter-Original-gtbu/addons/--Shadow_Box_Gallery/gallery_options.js

40 lines
817 B
JavaScript

$.extend(gp_editor,{
sortable_area_sel: '.slideshowb_icons ul',
img_name: 'slideshowb_img',
img_rel: '',
auto_start: true,
intervalSpeed : function(){},
/**
* Size Changes
*
*/
heightChanged : function(){
$('.gp_editing .slideshowb_images').stop(true,true).delay(800).animate({'height':this.value,'line-height':this.value+'px'});
},
/**
* Update the caption if the current image is the active image
*
*/
updateCaption: function(current_image,text){
var $li = $(current_image);
if( $li.index() === 0 ){
$li.closest('.slideshowb_wrap').find('.slideshowb_caption').html(text+' ');
}
},
removeImage: function(image){
var $li = $(image);
if( $li.index() === 0 ){
$li.closest('.slideshowb_wrap').find('.slideshowb_icons li').eq(1).find('a').click();
}
}
});