]> git.0d.be Git - panikdb.git/commitdiff
wiki: open large images fullscreen
authorFrédéric Péters <fpeters@0d.be>
Sat, 20 Jun 2020 20:49:13 +0000 (22:49 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 20 Jun 2020 20:49:13 +0000 (22:49 +0200)
panikdb/static/js/combo.wiki.js

index 680fc851142646d19a491228d49f70fbd3179326..bcda881fd8e1bb669ee90cf8ae97accb763d8f14 100644 (file)
@@ -472,4 +472,7 @@ $(function() {
     }
   });
   $('#quickedit input').trigger('change');
     }
   });
   $('#quickedit input').trigger('change');
+  $('div.wiki-section').on('click', 'img[data-orig-url]', function() {
+    window.location = $(this).data('orig-url');
+  });
 });
 });