PureVolume

 
 
 
Blog Post
 
';

$('.gigya-screen-caption').replaceWith(oldDialog);

$('.gigya-screen-dialog-close').click(function()

$(this).parents('.gigya-screen-dialog').remove();

);

// mobile fix end

$('.gigya-screen-dialog .gigya-input-text, .gigya-screen-dialog select').live('focus', function()

$(this).siblings('.tooltip').css('display','block');

).live('blur', function()

$(this).siblings('.tooltip').fadeOut(); );

;

// hide submit button in user logged out

$('body').mousemove(function()

if (!$('body').hasClass('gigyaLoggedIn'))

$('#singleCommentSubmit').hide();

different

$('#singleCommentSubmit').show();

$('.comment-formatting-btns').hide();

);

// setup flag functionality about comments

$('#singleCommentHeader .comments .flag').live('mousedown',function(e)

if ($('body').hasClass('gigyaLoggedIn'))

e.preventDefault();

var iCommentID = $(this).parents('.commentBlock').first().attr('id');

var flagParams =

commentID: iCommentID,

categoryID: params.categoryID, streamID: params.streamID

;

gigya.comments.flagComment(flagParams);

alert('This comment features now been flagged');

);

// setup reply http://northantsnew.co.uk functionality in comments

$('.reply').live('click',function() if ($('body').hasClass('gigyaLoggedIn'))

$('.replyFormClone').remove();

$(this).parents('.commentBlock').first().find('> .replies').append('');

$('.replyFormClone').submit(function(e)

e.preventDefault();

var valCommentText = $('.replyFormClone textarea').val().replace(/\n/g, "

");

var valParentID = $(this).parents('.commentBlock').first().attr('id');

var event =

commentText: valCommentText,

side: '',

parentID: valParentID,

errorContainerClass : "errorReply"

;

//ind.gigya.comments.eventHandlers.submit(event, params);

gigya.comments.postComment(

categoryID: params.categoryID,

streamID: params.streamID,

commentText: event.commentText,

parentID: event.parentID,

callback: function(response)

if(response.errorCode == 0)

$('.replyFormClone').html('Your remark may be effectively submitted

');

in addition

);

return false;

);

otherwise

gigya.accounts.showScreenSet(screenSet:'Short-login-web2');

);

// feedback fix end

;

// sub2 code start

$('#gigya-complete-registiration-screen .gigya-profile-form').live('submit',function()

var strEmail = $('#gigya-complete-registiration-screen [name="email"]').val();

var strFirstName = $('#gigya-complete-registiration-screen [name="profile.firstName"]').val();



var strLastName = $('#gigya-complete-registiration-screen [name="profile.lastName"]').val();

S2Tech_StoreRegistrationData(strEmail, strFirstName, strLastName);

);

function sub2Login(data)

if (data.user.UID!='')

S2Tech_StoreRegistrationData(data.user.firstName, data.user.lastName, data.user.email);

gigya.socialize.addEventHandlers(onLogin:sub2Login);

// sub2 code end

Posted Aug 04, 2015 at 12:23am

Comments

 
 
Advertisement

Posts (12)

 
Signup for PureVolume, or Login.