Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Chen-Zhe/photo-grid.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/scripts.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index b2c5fa4..19b1fdf 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -306,7 +306,14 @@
this.$title.html( eldata.title );
this.$description.html( eldata.description );
- this.$href.attr( 'href', eldata.href );
+
+ if (eldata.href) {
+ this.$href.attr( 'href', eldata.href );
+ this.$href.show();
+ }
+ else {
+ this.$href.hide();
+ }
var self = this;
@@ -427,4 +434,4 @@
$(function() {
Grid.init();
});
- </script> \ No newline at end of file
+ </script>