Skip to content
Snippets Groups Projects
Commit f841f5e1 authored by totten's avatar totten Committed by Seamus Lee
Browse files

Update javascript.md

parent 393f8b15
No related branches found
No related tags found
1 merge request!234Javascript Coding Standards
......@@ -24,9 +24,9 @@ Note: due to legacy code written before these standards were adopted, CiviCRM st
Javascript code should only really be found in three main locations
1 Inline scripts should be included in smarty .tpl template files. This should only be done where its limited to a specific page or form. Inline js must be enclosed in smarty {literal} tags
2. For any Javascript that acts as untility functions e.g. AJAX or any helper Javascript should go in the js/ folder of civicrm-core repo
3. For all angular javascript code that should go in an ang/ folder
1. Inline scripts should be included in smarty .tpl template files. This should only be done where its limited to a specific page or form. Inline js must be enclosed in smarty `{literal}` tags.
2. For any Javascript that acts as utility function, the files should go in the `js/` folder of the `civicrm-core` repo.
3. AngularJS code that should go in the `ang/` folder.
### Progressive Enhancement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment