aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-17 12:32:12 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-17 12:32:12 +0100
commitddbe3c7426a551420bb6ead09984333e956b3a58 (patch)
tree4289d39a2632b1f38fdecbcb9a550258da4d2631 /view/tpl
parentb8c7b2f81df61e5068366cbdb0f18940ff5d4bf1 (diff)
downloadvolse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.tar.gz
volse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.tar.bz2
volse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.zip
make always preload images before rendering the page a display setting
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/head.tpl1
-rwxr-xr-xview/tpl/settings_display.tpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 8a007232e..322273193 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -28,6 +28,7 @@
var justifiedGalleryActive = false;
{{if $channel_hash}}var channelHash = '{{$channel_hash}}';{{/if}}
{{if $channel_id}}var channelId = '{{$channel_id}}';{{/if}}{{* Used in e.g. autocomplete *}}
+ var preloadImages = {{$preload_images}};
</script>
diff --git a/view/tpl/settings_display.tpl b/view/tpl/settings_display.tpl
index 02f679852..cf79671fd 100755
--- a/view/tpl/settings_display.tpl
+++ b/view/tpl/settings_display.tpl
@@ -65,6 +65,7 @@
{{include file="field_checkbox.tpl" field=$channel_list_mode}}
{{include file="field_checkbox.tpl" field=$network_list_mode}}
{{include file="field_checkbox.tpl" field=$user_scalable}}
+ {{include file="field_checkbox.tpl" field=$preload_images}}
{{if $expert}}
<div class="form-group">
<a class="btn btn-default "href="pdledit">{{$layout_editor}}</a>