diff --git a/ext/handle_pixel/main.php b/ext/handle_pixel/main.php index cd82160f..9546699a 100644 --- a/ext/handle_pixel/main.php +++ b/ext/handle_pixel/main.php @@ -73,7 +73,7 @@ class PixelFileHandler extends DataHandlerExtension { public function onImageAdminBlockBuilding(ImageAdminBlockBuildingEvent $event) { $event->add_part("
- diff --git a/ext/handle_pixel/script.js b/ext/handle_pixel/script.js index c95bc3e0..aa83fa16 100644 --- a/ext/handle_pixel/script.js +++ b/ext/handle_pixel/script.js @@ -1,9 +1,9 @@ $(function() { - $("#zoomer").change(function(e) { + $(".shm-zoomer").change(function(e) { zoom(this.options[this.selectedIndex].value); }); - $("#main_image").click(function(e) { + $(".shm-main-image").click(function(e) { switch($.cookie("ui-image-zoom")) { case "full": zoom("width"); break; default: zoom("full"); break; @@ -16,7 +16,7 @@ $(function() { }); function zoom(zoom) { - var img = $('#main_image'); + var img = $('.shm-main-image'); if(zoom == "full") { img.css('max-width', img.data('width') + 'px'); img.css('max-height', img.data('height') + 'px'); @@ -34,7 +34,7 @@ function zoom(zoom) { img.css('max-height', (window.innerHeight * 0.95) + 'px'); } - $("#zoomer").val(zoom); + $(".shm-zoomer").val(zoom); $.cookie("ui-image-zoom", zoom, {path: '/', expires: 365}); } diff --git a/ext/handle_pixel/theme.php b/ext/handle_pixel/theme.php index 03e6c99f..4099e97f 100644 --- a/ext/handle_pixel/theme.php +++ b/ext/handle_pixel/theme.php @@ -23,7 +23,7 @@ class PixelFileHandlerTheme extends Themelet { } } - $html = "main image"; + $html = "main image"; $page->add_block(new Block("Image", $html, "main", 10)); } }