app/helpers/cmsedit_helper.rb in drg_cms-0.5.50.2 vs app/helpers/cmsedit_helper.rb in drg_cms-0.5.51.1

- old
+ new

@@ -409,11 +409,11 @@ end end # as field elsif document.respond_to?(v['name']) dc_format_value(document.send( v['name'] ), v['format']) -# as hash (dc_dummy) +# as hash (dc_memory) elsif document.class == Hash document[ v['name'] ] # error else "!!! #{v['name']}" @@ -587,16 +587,20 @@ end ############################################################################ # Create background div and table definitions for result set. ############################################################################ -def dc_background_for_result - html = '<div class="dc-result-div" ' - html << (@form['result_set']['table_style'] ? "style=\"overflow-x: scroll;\" >" : '>') - html << "\n" -# - html << "<table class=\"dc-result #{@form['result_set']['table_class']}\" " - html << (@form['result_set']['table_style'] ? "style=\"#{@form['result_set']['table_style']}\" >" : '>') +def dc_background_for_result(start) + if start == :start + html = '<div class="dc-result-div" ' + html << (@form['result_set']['table_style'] ? "style=\"overflow-x: scroll;\" >" : '>') + html << "\n" + # + html << "<table class=\"dc-result #{@form['result_set']['table_class']}\" " + html << (@form['result_set']['table_style'] ? "style=\"#{@form['result_set']['table_style']}\" >" : '>') + else + html = '</table></div>' + end html.html_safe end ############################################################################ # Checks if value is defined and sets default. If values are sent it also checks