navcarousel updated to 4.2
removed reference to a file no longer existing made load event configurable (document.ready vs. window.load)
This commit is contained in:
parent
fa134d1313
commit
b7e991a5a5
|
@ -72,6 +72,8 @@ class Admin_Navcarousel_Controller extends Admin_Controller {
|
|||
"navcarousel", "abovephoto", $form->navcarousel->abovephoto->value, true);
|
||||
module::set_var(
|
||||
"navcarousel", "noajax", $form->navcarousel->noajax->value, true);
|
||||
module::set_var(
|
||||
"navcarousel", "showondomready", $form->navcarousel->showondomready->value, true);
|
||||
module::set_var(
|
||||
"navcarousel", "maintainaspect", $form->thumbsettings->maintainaspect->value, true);
|
||||
module::set_var(
|
||||
|
@ -109,6 +111,8 @@ class Admin_Navcarousel_Controller extends Admin_Controller {
|
|||
->checked(module::get_var("navcarousel", "abovephoto", false));
|
||||
$group->checkbox("noajax")->label(t("Disable dynamic loading of thumbnails (might be slow for big albums)"))
|
||||
->checked(module::get_var("navcarousel", "noajax", false));
|
||||
$group->checkbox("showondomready")->label(t("Show carousel before all items are loaded (faster loading on large albums but might cause too early display on Chrome and Opera)"))
|
||||
->checked(module::get_var("navcarousel", "showondomready", false));
|
||||
|
||||
$group = $form->group("thumbsettings")->label(t("Change how thumnails are displayed"));
|
||||
$group->input("thumbsize")->label(t('Thumbnail size (in pixel)'))
|
||||
|
|
|
@ -87,14 +87,12 @@
|
|||
box-shadow: 1px 0px 8px #d7e1fa;
|
||||
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
||||
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
||||
behavior: url(ie-css3.htc);
|
||||
}
|
||||
|
||||
.carousel-current {
|
||||
box-shadow: 1px 0px 8px #d7e1fa;
|
||||
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
||||
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
||||
behavior: url(ie-css3.htc);
|
||||
padding: 5px;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
|
|
@ -58,7 +58,12 @@ class navcarousel_theme_Core {
|
|||
} else {
|
||||
$ajaxhandler = "itemLoadCallback: navcarousel_itemLoadCallback,\n";
|
||||
}
|
||||
|
||||
if (module::get_var("navcarousel", "showondomready", false)) {
|
||||
$onwinload = "";
|
||||
} else {
|
||||
$onwinload = "});\n
|
||||
$(window).load(function () {\n";
|
||||
}
|
||||
Return "\n<!-- Navcaoursel -->
|
||||
<style type=\"text/css\">\n
|
||||
". $containerwidth ."
|
||||
|
@ -82,16 +87,15 @@ class navcarousel_theme_Core {
|
|||
</style>\n
|
||||
<script type=\"text/javascript\">\n
|
||||
jQuery(document).ready(function() {\n
|
||||
jQuery('#navcarousel').jcarousel({\n
|
||||
". $ajaxhandler ."
|
||||
start: ". $itemoffset .",\n
|
||||
size: ". $childcount .",\n
|
||||
visible: ". $showelements .",\n
|
||||
". $rtl_support ."
|
||||
scroll: ". module::get_var("navcarousel", "scrollsize", "7") ."\n
|
||||
jQuery('#navcarousel').jcarousel({\n
|
||||
". $ajaxhandler ."
|
||||
start: ". $itemoffset .",\n
|
||||
size: ". $childcount .",\n
|
||||
visible: ". $showelements .",\n
|
||||
". $rtl_support ."
|
||||
scroll: ". module::get_var("navcarousel", "scrollsize", "7") ."\n
|
||||
});\n
|
||||
});\n
|
||||
$(window).load(function () {\n
|
||||
". $onwinload ."
|
||||
$(\".jcarousel-prev-horizontal\").css(\"visibility\", \"visible\");\n
|
||||
$(\".jcarousel-next-horizontal\").css(\"visibility\", \"visible\");\n
|
||||
$(\"#navcarousel\").css(\"visibility\", \"visible\");\n
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = "Navigation Carousel"
|
||||
description = "Adds a navigation carousel under the photo."
|
||||
version = 3
|
||||
version = 4.2
|
||||
|
|
Reference in New Issue
Block a user