NIHVIVO-1176. Removed themeStylesheetDir from template model, and replaced with themeDir. Also modified stylesheet and script addFromTheme methods so the prepend only the theme directory; the specific stylesheet or css directory must be added to the path argument.
This commit is contained in:
parent
535691ee11
commit
5bc5c0b93c
12 changed files with 80 additions and 108 deletions
|
@ -41,8 +41,8 @@
|
|||
Three ways to add a stylesheet:
|
||||
|
||||
A. In theme directory:
|
||||
${stylesheets.addFromTheme("/sample.css")}
|
||||
${stylesheets.add(themeStylesheetDir + "/sample.css")}
|
||||
${stylesheets.addFromTheme("/css/sample.css")}
|
||||
${stylesheets.add(themeDir + "/css/sample.css")}
|
||||
|
||||
B. Any location
|
||||
${stylesheets.add("/edit/forms/css/sample.css)"}
|
||||
|
@ -50,7 +50,7 @@ ${stylesheets.add("/edit/forms/css/sample.css)"}
|
|||
To add a script:
|
||||
|
||||
A. In theme directory:
|
||||
${scripts.addFromTheme("/sample.js")}
|
||||
${scripts.addFromTheme("/css/sample.js")}
|
||||
|
||||
B. Any location
|
||||
${scripts("/edit/forms/js/sample.js)"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue