Commit 9b2cac109d7587d123cfed56daaca50d1ef59120

Authored by Andrey Karpikov
1 parent ef0f61f9

check checked

@@ -320,12 +320,14 @@ module Kanjai @@ -320,12 +320,14 @@ module Kanjai
320 def self.replace_attributes_marker(attributes, hash_value) 320 def self.replace_attributes_marker(attributes, hash_value)
321 321
322 new_attributes = attributes.deep_dup 322 new_attributes = attributes.deep_dup
  323 + if new_attributes.keys.include?(:checked)
  324 + new_attributes['make-checked'] = new_attributes.delete(:checked)
  325 + end
323 326
324 attributes.each do |key, text| 327 attributes.each do |key, text|
325 if !hash_value.nil? and !text.nil? 328 if !hash_value.nil? and !text.nil?
326 hash_value.each do |key2, value2| 329 hash_value.each do |key2, value2|
327 if !key2.nil? and !value2.nil? 330 if !key2.nil? and !value2.nil?
328 - key = 'make-checked' if key == 'checked'  
329 new_attributes[key].gsub!(key2, value2) 331 new_attributes[key].gsub!(key2, value2)
330 new_attributes[key].gsub!('###FORM_ACTION###', "/#{I18n.locale}/form/#{@page_content_id}") 332 new_attributes[key].gsub!('###FORM_ACTION###', "/#{I18n.locale}/form/#{@page_content_id}")
331 end 333 end
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.276" 2 + VERSION = "0.0.277"
3 end 3 end