![]() |
|
zenJavascript in Testing theme needed? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zenJavascript in Testing theme needed? (/thread-613.html) |
zenJavascript in Testing theme needed? - kevito - 2006-06-21 What does all the javascript in the Testing theme do? It's called up in the header of album.php, index.php, and image.php with `` I'm developing a theme using this one as a base and am wondering if I can do away with the javascript. zenJavascript in Testing theme needed? - DarrellD - 2006-06-21 It embeds the JavaScript needed to load SAJAX which is what handles the inline-editing of the album/image descriptions. If you don't plan on using AJAX to do the inline-editing, then yes, you can get rid of it. zenJavascript in Testing theme needed? - Geert - 2006-06-21 Btw, is it possible to add a bit of CSS to the fields of the inline editing? zenJavascript in Testing theme needed? - DarrellD - 2006-06-21 Yep. The list of editable objects have CSS div tags with the following ID's: zenJavascript in Testing theme needed? - Geert - 2006-06-21 That doesn't really work I think. The form is not inside the div tag. zenJavascript in Testing theme needed? - DarrellD - 2006-06-21 You mean the comment form? Yeah, it's not in the div tag. Those CSS id selectors are only for editing the the album and image titles and descriptions. You should still be able to edit those with maybe a zenJavascript in Testing theme needed? - Geert - 2006-06-21 That is what I was trying to do. zenJavascript in Testing theme needed? - Stephane - 2007-04-24 I hope I'm not committing necromancy but I was wondering if it was easily possible to hide all the javascript that crowds the code into an external javascript file? zenJavascript in Testing theme needed? - trisweb - 2007-04-25 That's a good idea, but I think it's dynamic, so that may not be possible. Please remember that the Javascript you see is only visible to logged-in admins who have the AJAX update capability, no one else gets it. zenJavascript in Testing theme needed? - Stephane - 2007-04-25 Aha! I wasn't aware of this and was worried about keeping my code clean. |