From e7c055c21c3cde341ec8b876f445026c0ac96529 Mon Sep 17 00:00:00 2001 From: 3nids Date: Sat, 26 Sep 2009 12:42:54 +0200 Subject: [PATCH] Removed preload --- last_commit.txt | 1 + themes/3nids/3nids/js/jquery.fancybox.js | 6 ++---- themes/3nids/3nids/js/jquery.preloadimages.js | 10 ---------- themes/3nids/3nids/views/album.html.php | 11 ----------- themes/3nids/3nids/views/dynamic.html.php | 11 ----------- themes/3nids/3nids/views/image_block_block.html.php | 6 ------ themes/3nids/3nids/views/page.html.php | 6 ------ themes/3nids/3nids/views/search.html.php | 12 ------------ 8 files changed, 3 insertions(+), 60 deletions(-) create mode 100755 last_commit.txt delete mode 100755 themes/3nids/3nids/js/jquery.preloadimages.js diff --git a/last_commit.txt b/last_commit.txt new file mode 100755 index 00000000..ee47b710 --- /dev/null +++ b/last_commit.txt @@ -0,0 +1 @@ +Removed preload \ No newline at end of file diff --git a/themes/3nids/3nids/js/jquery.fancybox.js b/themes/3nids/3nids/js/jquery.fancybox.js index d4a4a480..4558c0d6 100755 --- a/themes/3nids/3nids/js/jquery.fancybox.js +++ b/themes/3nids/3nids/js/jquery.fancybox.js @@ -159,8 +159,7 @@ var href = opts.itemArray[opts.itemCurrent + 1].href; if (href.match(imageRegExp)) { - objNext = new Image(); - objNext.src = href; + $("").attr("src", href); } } @@ -168,8 +167,7 @@ var href = opts.itemArray[opts.itemCurrent -1].href; if (href.match(imageRegExp)) { - objNext = new Image(); - objNext.src = href; + $("").attr("src", href); } } }; diff --git a/themes/3nids/3nids/js/jquery.preloadimages.js b/themes/3nids/3nids/js/jquery.preloadimages.js deleted file mode 100755 index e1b69479..00000000 --- a/themes/3nids/3nids/js/jquery.preloadimages.js +++ /dev/null @@ -1,10 +0,0 @@ -preload_image_object = ''; -var img_count = 0; - -jQuery.preloadImages = function() -{ - for(var i = 0; i").attr("src", arguments[i]); - } -} diff --git a/themes/3nids/3nids/views/album.html.php b/themes/3nids/3nids/views/album.html.php index fc545510..e29ffe45 100755 --- a/themes/3nids/3nids/views/album.html.php +++ b/themes/3nids/3nids/views/album.html.php @@ -9,17 +9,6 @@ $theme->pagination = new Pagination(); $theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count,"items_per_page" => $page_size,"style" => "classic")); $children_offset = ($theme->pagination->current_page -1) * $page_size ; ?> - -