aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-10 11:34:37 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-10 11:34:37 +0100
commitd6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2 (patch)
tree0639186cb20696c799d23204d431d3e477e58edc /view/js/main.js
parentef7225b4f68ce032184e73b4af7444c90d1109a5 (diff)
downloadvolse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.tar.gz
volse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.tar.bz2
volse-hubzilla-d6ff8dc9b67b8bc80e6f5f4f1bc35c14a284ebd2.zip
introduce datasrc2src(selector) js function
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index a228e6fbc..77b8e91e7 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -92,6 +92,13 @@ $(document).ready(function() {
});
+function datasrc2src(selector) {
+ $(selector).each(function(i, el) {
+ $(el).attr("src", $(el).data("src"));
+ $(el).removeAttr("data-src");
+ });
+}
+
function confirmDelete() {
return confirm(aStr.delitem);
}