incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1040537 - in /incubator/alois/trunk/rails/app: helpers/application_helper.rb views/filters/_form_with_functions.rhtml views/survey/_chart.rhtml views/survey/_count_text.rhtml views/survey/_table.rhtml views/survey/list_inline.rhtml
Date Tue, 30 Nov 2010 14:26:25 GMT
Author: flavio
Date: Tue Nov 30 14:26:25 2010
New Revision: 1040537

URL: http://svn.apache.org/viewvc?rev=1040537&view=rev
Log:
Corrected changed backgroud attribute name for ajax Element.setStyle method.

Modified:
    incubator/alois/trunk/rails/app/helpers/application_helper.rb
    incubator/alois/trunk/rails/app/views/filters/_form_with_functions.rhtml
    incubator/alois/trunk/rails/app/views/survey/_chart.rhtml
    incubator/alois/trunk/rails/app/views/survey/_count_text.rhtml
    incubator/alois/trunk/rails/app/views/survey/_table.rhtml
    incubator/alois/trunk/rails/app/views/survey/list_inline.rhtml

Modified: incubator/alois/trunk/rails/app/helpers/application_helper.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/helpers/application_helper.rb?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/helpers/application_helper.rb (original)
+++ incubator/alois/trunk/rails/app/helpers/application_helper.rb Tue Nov 30 14:26:25 2010
@@ -707,8 +707,8 @@ module ApplicationHelper
     ret = ""
     if options[:frequency]
       ret += periodically_call_remote(:frequency => options[:frequency],
-				      :before => "Element.setStyle('#{div_id}', {'background-color' : '#{options[:update_color]}'});",
-				      :loaded => "Element.setStyle('#{div_id}', {'background-color' : 'transparent'});",
+				      :before => "Element.setStyle('#{div_id}', {backgroundColor : '#{options[:update_color]}'});",
+				      :loaded => "Element.setStyle('#{div_id}', {backgroundColor : 'transparent'});",
 				      :update => div_id, 
 				      :url => url)      
       ret += "<div>Auto reload after #{pluralize(options[:frequency],"second")}</div>"

Modified: incubator/alois/trunk/rails/app/views/filters/_form_with_functions.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/filters/_form_with_functions.rhtml?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/filters/_form_with_functions.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/filters/_form_with_functions.rhtml Tue Nov 30 14:26:25
2010
@@ -1,5 +1,5 @@
-<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {'background-color'
: '#FFBBBB'})}") %>
-<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {'background-color'
: '#FFFF66'})}") %>
-<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {'background-color'
: 'transparent'})}") %>
+<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {backgroundColor
: '#FFBBBB'})}") %>
+<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {backgroundColor
: '#FFFF66'})}") %>
+<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {backgroundColor
: 'transparent'})}") %>
 
 <%= render :partial => "/filters/form" %>

Modified: incubator/alois/trunk/rails/app/views/survey/_chart.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/survey/_chart.rhtml?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/survey/_chart.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/survey/_chart.rhtml Tue Nov 30 14:26:25 2010
@@ -2,9 +2,9 @@
 
   <%= javascript_tag("function update_table() {" + remote_function(:update => 'survey_chart',
:url => { :controller=> 'survey', :action => 'chart_inline', :state_id => @state_id
}) + "}") %>
 
-<%= javascript_tag("function table_invalid(){Element.setStyle('graphic', {'background-color'
: '#FFBBBB'})}") %>
-<%= javascript_tag("function table_reload(){Element.setStyle('graphic', {'background-color'
: '#FFFF66'})}") %>
-<%= javascript_tag("function table_valid(){Element.setStyle('graphic', {'background-color'
: 'transparent'})}") %>
+<%= javascript_tag("function table_invalid(){Element.setStyle('graphic', {backgroundColor
: '#FFBBBB'})}") %>
+<%= javascript_tag("function table_reload(){Element.setStyle('graphic', {backgroundColor
: '#FFFF66'})}") %>
+<%= javascript_tag("function table_valid(){Element.setStyle('graphic', {backgroundColor
: 'transparent'})}") %>
 
 <table class="form">
   <tr>

Modified: incubator/alois/trunk/rails/app/views/survey/_count_text.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/survey/_count_text.rhtml?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/survey/_count_text.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/survey/_count_text.rhtml Tue Nov 30 14:26:25 2010
@@ -4,7 +4,7 @@
       <%= link_to_remote "Calculate", 
 	:update => 'count_text', 
 	:url => { :action => 'count_text', :slow_count => true, :state_id => @state_id},

-	:before => "Element.setStyle('inner_count_text', {'background-color' : '#FFBBBB'})"
+	:before => "Element.setStyle('inner_count_text', {backgroundColor : '#FFBBBB'})"
 	 %> This can take a very long time.
   <% end %>
 </span>

Modified: incubator/alois/trunk/rails/app/views/survey/_table.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/survey/_table.rhtml?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/survey/_table.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/survey/_table.rhtml Tue Nov 30 14:26:25 2010
@@ -2,9 +2,9 @@
 
 <%= javascript_tag("function update_table() {" + remote_function(:update => 'survey_table',
:url => { :controller=> 'survey', :action => 'list_inline', :state_id => @state_id
}) + "}") %>
 
-<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {'background-color'
: '#FFBBBB'})}") %>
-<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {'background-color'
: '#FFFF66'})}") %>
-<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {'background-color'
: 'transparent'})}") %>
+<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {backgroundColor
: '#FFBBBB'})}") %>
+<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {backgroundColor
: '#FFFF66'})}") %>
+<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {backgroundColor
: 'transparent'})}") %>
 
 <%= show_hide_script %>
 <table class="form">

Modified: incubator/alois/trunk/rails/app/views/survey/list_inline.rhtml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/views/survey/list_inline.rhtml?rev=1040537&r1=1040536&r2=1040537&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/views/survey/list_inline.rhtml (original)
+++ incubator/alois/trunk/rails/app/views/survey/list_inline.rhtml Tue Nov 30 14:26:25 2010
@@ -1,7 +1,7 @@
 <% @update_table = remote_function(:update => 'survey_table', :url => url_for (
:controller=> 'survey', :action => 'list_inline', :state_id => @state_id )) %>
 
-<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {'background-color'
: '#FFBBBB'})}") %>
-<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {'background-color'
: '#FFFF66'})}") %>
-<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {'background-color'
: 'transparent'})}") %>
+<%= javascript_tag("function table_invalid(){Element.setStyle('log_table', {backgroundColor
: '#FFBBBB'})}") %>
+<%= javascript_tag("function table_reload(){Element.setStyle('log_table', {backgroundColor'
: '#FFFF66'})}") %>
+<%= javascript_tag("function table_valid(){Element.setStyle('log_table', {backgroundColor
: 'transparent'})}") %>
 
 <%= render :partial => "table" %>



Mime
View raw message