public
Description: Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.
Homepage: http://kete.net.nz/
Clone URL: git://github.com/kete/kete.git
bugfix: the basket header image text are wasn't filling its value so saving when 
empty would erase the image completely. Adding value on page load.
Kieran Pilkington (author)
Thu Nov 20 17:03:31 -0800 2008
commit  8e9230f3d23c3e40aa5dbb2a0de981e0f10a7c48
tree    f0ac32f9069d5e445876884ae4107c686f717797
parent  af86d2e08c895397d2c4e9cb0299c38d70331c2a
...
17
18
19
20
21
22
23
 
 
 
24
25
26
...
17
18
19
 
 
 
 
20
21
22
23
24
25
0
@@ -17,10 +17,9 @@
0
   </div>
0
 
0
   <div class="form-element">
0
-    <%= image_tag(@basket.settings[:header_image], :alt => "Current Basket Header Image. ") if !@basket.settings[:header_image].blank? -%>
0
-    <label for="settings_header_image">URL for background image for the top
0
-    of each page:</label>
0
-    <%= text_field 'settings', 'header_image', {"id" => "settings_header_image", :tabindex => '1'} %>
0
+    <%= image_tag(@basket.settings[:header_image], :alt => "Current Basket Header Image. ") + "<br />" if !@basket.settings[:header_image].blank? -%>
0
+    <label for="settings_header_image">URL for background image for the top of each page:</label>
0
+    <%= text_field 'settings', 'header_image', { "id" => "settings_header_image", :tabindex => '1', :value => @basket.settings[:header_image] } %>
0
   </div>
0
 
0
   <div class="form-element">

Comments