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);
|
"navcarousel", "abovephoto", $form->navcarousel->abovephoto->value, true);
|
||||||
module::set_var(
|
module::set_var(
|
||||||
"navcarousel", "noajax", $form->navcarousel->noajax->value, true);
|
"navcarousel", "noajax", $form->navcarousel->noajax->value, true);
|
||||||
|
module::set_var(
|
||||||
|
"navcarousel", "showondomready", $form->navcarousel->showondomready->value, true);
|
||||||
module::set_var(
|
module::set_var(
|
||||||
"navcarousel", "maintainaspect", $form->thumbsettings->maintainaspect->value, true);
|
"navcarousel", "maintainaspect", $form->thumbsettings->maintainaspect->value, true);
|
||||||
module::set_var(
|
module::set_var(
|
||||||
@ -109,6 +111,8 @@ class Admin_Navcarousel_Controller extends Admin_Controller {
|
|||||||
->checked(module::get_var("navcarousel", "abovephoto", false));
|
->checked(module::get_var("navcarousel", "abovephoto", false));
|
||||||
$group->checkbox("noajax")->label(t("Disable dynamic loading of thumbnails (might be slow for big albums)"))
|
$group->checkbox("noajax")->label(t("Disable dynamic loading of thumbnails (might be slow for big albums)"))
|
||||||
->checked(module::get_var("navcarousel", "noajax", false));
|
->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 = $form->group("thumbsettings")->label(t("Change how thumnails are displayed"));
|
||||||
$group->input("thumbsize")->label(t('Thumbnail size (in pixel)'))
|
$group->input("thumbsize")->label(t('Thumbnail size (in pixel)'))
|
||||||
|
@ -87,14 +87,12 @@
|
|||||||
box-shadow: 1px 0px 8px #d7e1fa;
|
box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
behavior: url(ie-css3.htc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-current {
|
.carousel-current {
|
||||||
box-shadow: 1px 0px 8px #d7e1fa;
|
box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
-moz-box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
-webkit-box-shadow: 1px 0px 8px #d7e1fa;
|
||||||
behavior: url(ie-css3.htc);
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,12 @@ class navcarousel_theme_Core {
|
|||||||
} else {
|
} else {
|
||||||
$ajaxhandler = "itemLoadCallback: navcarousel_itemLoadCallback,\n";
|
$ajaxhandler = "itemLoadCallback: navcarousel_itemLoadCallback,\n";
|
||||||
}
|
}
|
||||||
|
if (module::get_var("navcarousel", "showondomready", false)) {
|
||||||
|
$onwinload = "";
|
||||||
|
} else {
|
||||||
|
$onwinload = "});\n
|
||||||
|
$(window).load(function () {\n";
|
||||||
|
}
|
||||||
Return "\n<!-- Navcaoursel -->
|
Return "\n<!-- Navcaoursel -->
|
||||||
<style type=\"text/css\">\n
|
<style type=\"text/css\">\n
|
||||||
". $containerwidth ."
|
". $containerwidth ."
|
||||||
@ -90,8 +95,7 @@ class navcarousel_theme_Core {
|
|||||||
". $rtl_support ."
|
". $rtl_support ."
|
||||||
scroll: ". module::get_var("navcarousel", "scrollsize", "7") ."\n
|
scroll: ". module::get_var("navcarousel", "scrollsize", "7") ."\n
|
||||||
});\n
|
});\n
|
||||||
});\n
|
". $onwinload ."
|
||||||
$(window).load(function () {\n
|
|
||||||
$(\".jcarousel-prev-horizontal\").css(\"visibility\", \"visible\");\n
|
$(\".jcarousel-prev-horizontal\").css(\"visibility\", \"visible\");\n
|
||||||
$(\".jcarousel-next-horizontal\").css(\"visibility\", \"visible\");\n
|
$(\".jcarousel-next-horizontal\").css(\"visibility\", \"visible\");\n
|
||||||
$(\"#navcarousel\").css(\"visibility\", \"visible\");\n
|
$(\"#navcarousel\").css(\"visibility\", \"visible\");\n
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = "Navigation Carousel"
|
name = "Navigation Carousel"
|
||||||
description = "Adds a navigation carousel under the photo."
|
description = "Adds a navigation carousel under the photo."
|
||||||
version = 3
|
version = 4.2
|
||||||
|
Reference in New Issue
Block a user