Home
Charts
Forum
Comments
Trending topics
New topics
Browse
Moderators
Help
About us
LetsSingIt
Contact
Museum
Sitemap
usage
the internet lyrics database
en
Choose your language
LetsSingIt comes to you in your own language! Choose your language below. Not all languages are fully translated. Help us translate the rest!
Help translate
1
Hi guest, welcome to LetsSingIt!
You're not logged in. Log in to enjoy extra privileges that come with a free membership!
read more
log in
register
To my peers in lsi
comments
trending
new
browse
moderators
›
Forum
›
browse
›
Announcements
›
To my peers in lsi
Follow
0
Share
Add topic
Search
2
racketeer
| 00:27
My best work is on this site and although I don't tune in as much as I should...I LOVE lsi and its kind kind members.
Happy winter holidays...
Racketeer (reisa gerber)
0
comments
guest
POP OUT
SAVE
saving ...
$form.$set(f,{a:'ajax_comment_manage',pop:'in',content_type:'forumtopic',parent_id:'604384',follow:0},{noaskonclose:1}); //-------------------------------------------------------------------------------------------------- // On save //-------------------------------------------------------------------------------------------------- $events.$addFunction('click',1545420973,true,function(){ //-------------------------------------------------------------------------------------------- // Find form element //-------------------------------------------------------------------------------------------- var f=arguments[0].$t.closest('form'); //-------------------------------------------------------------------------------------------- // Callback //-------------------------------------------------------------------------------------------- var $callback = function(f,$c,$json) { if ($json.hasOwnProperty('mode') && $json.mode == 'popin') { // Error occured - popin version f.parent().html($json.body); } else { var $formrow = $('#id_1545492900').closest('div[data-form]'); // Find the wrapper of the form (div that holds the form) //------------------------------------------------------------------------------------ // Remove lightbox for popout or reset popin form //------------------------------------------------------------------------------------ if ($json.pop == 'out') { lightbox_remove(); } else { $formrow.find('[data-b]').find('span').show().last().hide(); f.find('textarea[name=comment]').prop('disabled',false).val(''); f.find('input[name=vote]').val(''); f.find('.errors').remove(); // remove error box if present } //------------------------------------------------------------------------------------ // Insert on bottom //------------------------------------------------------------------------------------ if ($json.content_type == 'forumtopic') $('html, body') // html and body both needed for cross browser compatibility .animate({ scrollTop:$formrow.last().offset().top - 200 }, 500) .promise() // the promise-done deals with preventing a double call for browser that support both html and body .done(function(){ $formrow.last().before($json.comment).prev().rowslide({effect:'open'}); }); //------------------------------------------------------------------------------------ // Insert on top //------------------------------------------------------------------------------------ else $formrow.first().after($json.comment).next().rowslide({effect:'open'}); } return; }; //-------------------------------------------------------------------------------------------- // Parse request //-------------------------------------------------------------------------------------------- $http.$req({m:'POST',d:1,q:f.serialize(),b:$.proxy($callback,null,f)}); //-------------------------------------------------------------------------------------------- // "After-click" styling //-------------------------------------------------------------------------------------------- if (f.find('input[name=pop]').val() == 'in') { arguments[0].$t.parent().children().hide().last().show(); f.find('textarea[name=comment]').prop('disabled',true); // do after $http.$req because serialize ignores disabled fields } else { lightbox_remove({keepdim:1}); lightbox_prepare({}); } }); //-------------------------------------------------------------------------------------------------- // Detach function (pop-out button and poll vote button) - prepare for "detach" submit //-------------------------------------------------------------------------------------------------- $events.$addFunction('click',1519156756,true,function(){ var f = arguments[0].$t.closest('form'); f.find('input[name=reload]').val(1); f.find('input[name=pop]').val('out'); //if (arguments[0].$t.is('[data-vote]')) f.find('input[name=vote]').val(arguments[0].$t.attr('data-vote')); f.find('.errors').remove(); }); $events.$addFunction('click',1545858987,true,function(){ // Poll-vote button var f = $('#id_1545492900'); f.find('input[name=vote]').val(arguments[0].$t.attr('data-vote')); $('#id_1545858923').trigger('click'); }); //-------------------------------------------------------------------------------------------------- // Reset popin form //-------------------------------------------------------------------------------------------------- $events.$addFunction('click',1545413833,true,function(){ var f = arguments[0].$t.closest('form'); f.find('input[name=reload]').val(0); f.find('input[name=pop]').val('in'); f.find('input[name=vote]').val(''); f.find('textarea[name=comment]').val(''); });
Read more:
comments
trending topics
new topics
browse
games
general discussion
Happy winter holidays...
Racketeer (reisa gerber)