sweider/sample2 — pull request #2 by sweider (2013-09-18 12:31:51+00:00)
Title: I need help with this f****ng JS

I have some problems with ajax_getting.js.erb in MessagesController.
My problem:
I try to generate content of modal window, when i click on a message. It's ok. Then I decide to give opportunity for quick answer/writing new message through this window without any redirects. I use eventHandler
===========================================
messageWindow.find("#toggle-form").on("click", function(){
============================================
to catch click and then render form. Also when work with modal is over -- I handle
=========================================
messageWindow.on("hide", function(){
========================================
and remove this form from DOM. I have checked -- form really disappear. but, when i click next message and click my button again -- there are appear n + 1 forms, where n = count of previous clicks. And I totally can't understand why?????