 
 	skuSelected: (evt, productId, sku) =>
 		return unless @check(productId)
+		@sku = sku
 		if sku.available
 			@hideAll()
 		else

class NotifyMe
	constructor: (@context, @productId, @options) ->
		@init()

	POST_URL: '/no-cache/AviseMe.aspx'



	skuUnselected: (evt, productId, skus) =>
		return unless @check(productId)
		@sku = null
		@hideAll()
		
	submit: (evt) =>
		evt.preventDefault()

		@hideForm()
		@showLoading()

		xhr = $.post(@POST_URL, $(evt.target).serialize())
		.always(=> @hideLoading())
		.done(=> @showSuccess())
		.fail(=> @showError())

		@context.trigger 'vtex.notifyMe.submitted', [@productId, @sku, xhr]

		return false

