From bb27c7a5859039f1a53fbf8b2e2b0f2c651d294a Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 29 Dec 2012 16:19:23 -0500 Subject: [PATCH] Removing unused file --- app/assets/javascripts/examples.js.coffee.sample | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 app/assets/javascripts/examples.js.coffee.sample diff --git a/app/assets/javascripts/examples.js.coffee.sample b/app/assets/javascripts/examples.js.coffee.sample deleted file mode 100644 index 5187716..0000000 --- a/app/assets/javascripts/examples.js.coffee.sample +++ /dev/null @@ -1,15 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ -jQuery -> - $('form').on 'click', '.remove_fields', (event) -> - $(this).prev('input[type=hidden]').val('1') - $(this).closest('fieldset').hide() - event.preventDefault() - - $('form').on 'click', '.add_fields', (event) -> - time = new Date().getTime() - regexp = new RegExp($(this).data('id'), 'g') - $(this).before($(this).data('fields').replace(regexp, time)) - event.preventDefault() -