neerajdotname-javascript_lab 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/javascript_lab.rb +1 -1
- data/views/index.erb +4 -2
- data/views/layout.erb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/javascript_lab.rb
CHANGED
data/views/index.erb
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
<select name='javascript_library' onchange="location = this.options[this.selectedIndex].value">
|
6
6
|
<option value=''>please select </option>
|
7
7
|
<option value=''> </option>
|
8
|
+
<%=create_option('nojsl','No javascript library')%>
|
9
|
+
<option value=''> </option>
|
8
10
|
<optgroup label='jQuery'>
|
9
11
|
<%=create_option('jquery-1.3.2','jQuery 1.3.2')%>
|
10
12
|
<%=create_option('jquery-1.3.1','jQuery 1.3.1')%>
|
@@ -27,7 +29,7 @@
|
|
27
29
|
</optgroup>
|
28
30
|
</select>
|
29
31
|
|
30
|
-
<%
|
32
|
+
<% if !params[:j].nil? && params[:j] != 'nojsl' %>
|
31
33
|
<a href="/javascripts/<%=params[:j]%>.js" target='_blank'>source code</a>
|
32
34
|
<% end %>
|
33
35
|
</p>
|
@@ -55,6 +57,6 @@
|
|
55
57
|
<div id='log_output'>
|
56
58
|
</div>
|
57
59
|
</div>
|
58
|
-
<% end
|
60
|
+
<% end %><D-e>
|
59
61
|
<div style='clear:both;'></div>
|
60
62
|
</div>
|
data/views/layout.erb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
<script src='/javascripts/app.js?<%=Time.now.usec%>' type='text/javascript'></script>
|
13
13
|
|
14
|
-
<% if params[:j] %>
|
14
|
+
<% if params[:j] && params[:j] != 'njsl' %>
|
15
15
|
<script src='/javascripts/<%=params[:j]%>.js' type='text/javascript'></script>
|
16
16
|
<% end %>
|
17
17
|
|