Merge pull request #2613 from rabuzarus/1506-frio_bookmarklet

frio: open jot modal automatically on bookmarklet page
This commit is contained in:
Michael Vogel 2016-06-16 06:37:27 +02:00 committed by GitHub
commit 76abade4d8

View File

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