Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Yes button binding
- $("#ratingYes").bind("mousedown",function(){
- MscomCustomEvent(
- "ms.title=yes",
- "ms.cmpgrp=feedbackform"
- );
- });
- // No button binding
- $("#ratingNo").bind("mousedown",function(){
- MscomCustomEvent(
- "ms.title=no",
- "ms.cmpgrp=feedbackform"
- );
- });
- // Submit button binding
- $("#ratingSubmit").bind("mousedown",function(){
- // grab the max character count, and the current character count
- // store the difference in feedbackCharacterCount
- // if either pull fails, feedbackCharacterCount should return NaN
- var feedbackCharacterCount = (Number($("#ratingText").attr("maxLength")) - Number($("#feedbackTextCounter").text()));
- MscomCustomEvent(
- "ms.title=submit",
- "ms.feedbackid=" + feedbackCharacterCount,
- "ms.cmpgrp=feedbackform"
- );
- });
- // Skip this button binding
- $("#ratingSkipThis").bind("mousedown",function(){
- MscomCustomEvent(
- "ms.title=skip this",
- "ms.cmpgrp=feedbackform"
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement