Created
January 6, 2013 18:03
-
-
Save msmithstubbs/4469055 to your computer and use it in GitHub Desktop.
Back In Stock integration for http://www.babeetalk.com/
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
| <script> | |
| var create_callback = function(data) { | |
| if (data.status == 'OK') | |
| { alert(data.message) } | |
| else { | |
| var msg = []; | |
| for (var i in data.errors) { | |
| msg.push(data.errors[i]); | |
| } | |
| alert(msg.join("\n")); | |
| } | |
| } | |
| $('#notify_button').click(function() { | |
| BISPopover.create($('#notify_email').val(), {{product.variants.first.id}}, {{product.id}}).then(create_callback); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment