]> git.mxchange.org Git - friendica.git/commitdiff
frio: open jot modal automatically on bookmarklet page
authorrabuzarus <>
Wed, 15 Jun 2016 22:20:00 +0000 (00:20 +0200)
committerrabuzarus <>
Wed, 15 Jun 2016 22:20:00 +0000 (00:20 +0200)
view/theme/frio/js/modal.js

index 0a881f10f6f9d5aa06a35cfd94abf508c5c032ef..cba733a8087c7794625d48942b895a1e2e65c3ac 100644 (file)
@@ -62,6 +62,11 @@ $(document).ready(function(){
                toggleJotNav(this);
        });
 
+       // bookmarklet page needs an jot modal which appears automatically
+       if(window.location.pathname.indexOf("/bookmarklet") >=0){
+               jotShow();
+       }
+
        // Open filebrowser for elements with the class "image-select"
        // The following part handles the filebrowser for field_fileinput.tpl
        $("body").on("click", ".image-select", function(){