From dfce0f5b64c002f11daa4f6472a832ca0ec0d858 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 16 Jun 2016 00:20:00 +0200 Subject: [PATCH 1/2] frio: open jot modal automatically on bookmarklet page --- view/theme/frio/js/modal.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index 0a881f10f6..cba733a808 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -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(){ From 7b602a20e6d337a663cf3b71142d0504b378e29e Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 16 Jun 2016 00:27:45 +0200 Subject: [PATCH 2/2] frio - bookmarklet - open jot only if it is available --- view/theme/frio/js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index cba733a808..fcaaadcc7b 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -63,7 +63,7 @@ $(document).ready(function(){ }); // bookmarklet page needs an jot modal which appears automatically - if(window.location.pathname.indexOf("/bookmarklet") >=0){ + if(window.location.pathname.indexOf("/bookmarklet") >=0 && $("#jot-modal").length){ jotShow(); }