app/assets/javascripts/admin/fields.js.coffee in fat_free_crm-0.12.3 vs app/assets/javascripts/admin/fields.js.coffee in fat_free_crm-0.13.0

- old
+ new

@@ -18,18 +18,18 @@ $('.fields a.create').live 'click', -> $('.edit_field').hide() field_group = $(this).closest('.field_group') field_group.find('.empty').hide() - field_group.find('.arrow').html(crm.EXPANDED) + field_group.find('.create .arrow').html(crm.EXPANDED) field_group.find('.create_field').slideDown().find('input[name="field[label]"]').focus() false $('.create_field a.close, .create_field a.cancel').live 'click', -> $(this).closest('.create_field').hide() $(this).closest('.field_group').find('.empty').show() - $(this).closest('.field_group').find('.arrow').html(crm.COLLAPSED) + $(this).closest('.field_group').find('.create .arrow').html(crm.COLLAPSED) false $('.fields a.edit').live 'click', -> $('.edit_field').hide() $.ajax( @@ -37,10 +37,10 @@ context: $(this).closest('li').find('div.edit_field') success: (data) -> $(this).replaceWith(data).first().focus() ) false - + $('.edit_field a.close, .edit_field a.cancel').live 'click', -> $(this).closest('.edit_field').hide() false false