Fix mongoid deeply nested polimorphic

Got the commit from github. The roles and sub_roles save.
This commit is contained in:
chris2tof committed 2011-12-19 21:22:26 +08:00
1 parent d27d7a623c
commit 4108ebf06d
11 files changed
+45 -41

No files matched your search

+2 -2
View File
@@ -2,12 +2,12 @@ $('.attributes_block a.delete').live('click', function(){
$(this).parents('.list_item').remove();
});
$('#attributes a.remove_existing_record').live('click', function(){
$('.action a.remove_existing_record').live('click', function(){
$(this).next('.should_destroy').attr('value', 1);
$("#attribute_" + $(this).prev().attr('value')).hide();
});
$('#attributes_block a.switch').live('click', function(){
$('.action a.switch').live('click', function(){
$(this).parent().toggleClass('disable');
var $am = $(this).next('.built_in_state')
$am.attr('value', ($am.attr('value') == "false") ? "true" : "false");