Avatar

JavaScript questions @Milo and @Alex (Design/Themes)

by Micha ⌂, Saturday, August 27, 2016, 08:14 (2797 days ago) @ Auge

Hi,

generating and displaying the elements #bbcode-options, #ajax-preview and #image-canvas (I don't know the purpose of the latter two elements)

The first (#ajax-preview) is used to show the posting by clicking at the [image]-icon. The second one (#image-canvas) is used, when you enlarge an image, eg.g [img=thumbnail].

Is it possible to add theme-dependent JS-code without interaction with the main.js?

You can add another JavaScript file. To avoid conflicts, choose unique class-names.

Ah, „manual“ namespaces.

No, that's not the right description. I believe, the JavaScript is robust and you can add your own code. Just avoid object names that are still in use like Posting (e.g. new Posting(<id>).

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread