neerajdotname-javascript_lab 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
 
2
+ === 0.0.15 2009-06-28
3
+
4
+ * support for no javascript library is needed
5
+
2
6
  === 0.0.14 2009-06-18
3
7
 
4
8
  * both the stylesheet and javascripts have Time.now.usec appended so that browsers will not use old cached assests
@@ -8,5 +8,5 @@ require 'javascript_lab/view_helpers'
8
8
  require 'javascript_lab/app'
9
9
 
10
10
  module JavascriptLab
11
- VERSION = '0.0.14'
11
+ VERSION = '0.0.15'
12
12
  end
@@ -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
- <% unless params[:j].nil? %>
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>
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neerajdotname-javascript_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj Singh