diff options
author | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2013-06-25 01:43:11 +0900 |
---|---|---|
committer | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2013-06-25 01:43:11 +0900 |
commit | 501e663a251e63f31c98558093c682dba9e1e3d7 (patch) | |
tree | cf9d74da77be853eca6d4f4eb22d93c8b47469a2 /guides/source | |
parent | f6cdc2282ff4a34e4d0230b80d945f9c898d6973 (diff) | |
download | rails-501e663a251e63f31c98558093c682dba9e1e3d7.tar.gz rails-501e663a251e63f31c98558093c682dba9e1e3d7.tar.bz2 rails-501e663a251e63f31c98558093c682dba9e1e3d7.zip |
Improve js written for guides
* Stop using unnecessary global variable
* Use function defined by jQuery for simplicity
* Fix event listner for "more info button" to handle
event on resize browser
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/layout.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/layout.html.erb b/guides/source/layout.html.erb index 1dcf383b92..379deb6094 100644 --- a/guides/source/layout.html.erb +++ b/guides/source/layout.html.erb @@ -48,7 +48,7 @@ <ul class="nav"> <li><a class="nav-item" href="index.html">Home</a></li> <li class="guides-index guides-index-large"> - <a href="index.html" onclick="guideMenu(); return false;" id="guidesMenu" class="guides-index-item nav-item">Guides Index</a> + <a href="index.html" id="guidesMenu" class="guides-index-item nav-item">Guides Index</a> <div id="guides" class="clearfix" style="display: none;"> <hr /> <% ['L', 'R'].each do |position| %> @@ -141,7 +141,7 @@ <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushSql.js"></script> <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushPlain.js"></script> <script type="text/javascript"> - SyntaxHighlighter.all() + SyntaxHighlighter.all(); $(guidesIndex.bind); </script> </body> |