Removed preload
This commit is contained in:
parent
b0ad4fa7e7
commit
e7c055c21c
1
last_commit.txt
Executable file
1
last_commit.txt
Executable file
@ -0,0 +1 @@
|
||||
Removed preload
|
6
themes/3nids/3nids/js/jquery.fancybox.js
vendored
6
themes/3nids/3nids/js/jquery.fancybox.js
vendored
@ -159,8 +159,7 @@
|
||||
var href = opts.itemArray[opts.itemCurrent + 1].href;
|
||||
|
||||
if (href.match(imageRegExp)) {
|
||||
objNext = new Image();
|
||||
objNext.src = href;
|
||||
$("<img>").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;
|
||||
$("<img>").attr("src", href);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1,10 +0,0 @@
|
||||
preload_image_object = '';
|
||||
var img_count = 0;
|
||||
|
||||
jQuery.preloadImages = function()
|
||||
{
|
||||
for(var i = 0; i<arguments.length; i++)
|
||||
{
|
||||
jQuery("<img>").attr("src", arguments[i]);
|
||||
}
|
||||
}
|
@ -10,17 +10,6 @@
|
||||
$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 ; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<? for($i=0;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
if(img_count>0){preload_image_object += ', ';}
|
||||
preload_image_object += '"<?=$child->file_url()?>"';
|
||||
img_count++;
|
||||
<? endif ?>
|
||||
<? endfor ?>
|
||||
</SCRIPT>
|
||||
|
||||
<ul id="gAlbumGrid">
|
||||
<? if (count($children)): ?>
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
|
@ -10,17 +10,6 @@
|
||||
$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 ; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<? for($i=0;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
if(img_count>0){preload_image_object += ', ';}
|
||||
preload_image_object += '"<?=$child->file_url()?>"';
|
||||
img_count++;
|
||||
<? endif ?>
|
||||
<? endfor ?>
|
||||
</SCRIPT>
|
||||
|
||||
|
||||
<ul id="gAlbumGrid">
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
|
@ -15,9 +15,3 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
if(img_count>0){preload_image_object += ', ';}
|
||||
preload_image_object += '"<?=$item->file_url()?>"';
|
||||
img_count++;
|
||||
</script>
|
||||
|
||||
|
@ -62,7 +62,6 @@
|
||||
<?= $theme->script("jquery.localscroll.js") ?>
|
||||
<?= $theme->script("jquery.easing.js") ?>
|
||||
<?= $theme->script("jquery.fancybox.js") ?>
|
||||
<?= $theme->script("jquery.preloadimages.js") ?>
|
||||
<?= $theme->script("ui.init.js") ?>
|
||||
|
||||
<? /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
|
||||
@ -168,10 +167,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<?= $theme->page_bottom() ?>
|
||||
<script type="text/javascript">
|
||||
if (img_count > 0){
|
||||
eval("$.preloadImages("+preload_image_object+");");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -6,18 +6,6 @@
|
||||
$theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count_true,"items_per_page" => $page_size,"style" => "classic"));
|
||||
$children_offset = ($theme->pagination->current_page -1) * $page_size ; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<? for($i=0;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<? if ($child->is_photo()): ?>
|
||||
if(img_count>0){preload_image_object += ', ';}
|
||||
preload_image_object += '"<?=$child->file_url()?>"';
|
||||
img_count++;
|
||||
<? endif ?>
|
||||
<? endfor ?>
|
||||
</script>
|
||||
|
||||
|
||||
<div id="gSearchResults">
|
||||
<h2><?= t("Results for <b>%term</b>", array("term" => $q)) ?></h2>
|
||||
|
||||
|
Reference in New Issue
Block a user