rbrindley: branch 2.0 r4158 - /branches/2.0/developer_info/CODING-GUIDELINES
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Nov 19 19:15:16 CST 2008
Author: rbrindley
Date: Wed Nov 19 19:15:15 2008
New Revision: 4158
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4158
Log:
added a file structure guideline discussing the rule of when to extract out javascript from an html file.
Modified:
branches/2.0/developer_info/CODING-GUIDELINES
Modified: branches/2.0/developer_info/CODING-GUIDELINES
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/developer_info/CODING-GUIDELINES?view=diff&rev=4158&r1=4157&r2=4158
==============================================================================
--- branches/2.0/developer_info/CODING-GUIDELINES (original)
+++ branches/2.0/developer_info/CODING-GUIDELINES Wed Nov 19 19:15:15 2008
@@ -67,6 +67,12 @@
* File structure
----------------
+- HTML files that include roughly more than 100 lines of javascript should
+ have the javascript moved into a .js file in the config/js/ folder. The
+ associated js file should have the same basename as the html file. Example:
+
+ config/index.html has config/js/index.js
+
- The first lines of any file should be the Asterisk license comments.
- The license comments should be followed by any styling, first links
More information about the asterisk-gui-commits
mailing list