Created
February 27, 2013 21:56
-
-
Save leofrozenyogurt/5052139 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var do_on_load = function() { | |
| var userName = ''; | |
| var userEmail = ''; | |
| $('.index-open-message').click(function() { | |
| var userName = $(this).attr('data-deal-user-name'); | |
| var userEmail = $(this).attr('data-deal-user-email'); | |
| var dealTitle= $(this).attr('data-deal-title'); | |
| console.log(userName); | |
| $('.modal-header > h2').empty().append('Contact ' + userName) | |
| $('input#conversation_recipients').attr('value', userEmail); | |
| }); | |
| } | |
| $.ajax({ | |
| success:function() { | |
| do_on_load; | |
| $(".index-open-message").on('click',function(){ | |
| $('#messageModal').modal('show'); | |
| }); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment