表紙
チャート
Forum
反応
注目のトピックス
新しいトピック
葉
モデレーター
助けて
私たちに関しては
LetsSingIt
連絡する
博物館
サイトマップ
使用法
インターネット歌詞データベース
ja
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
0
こんにちはゲスト、レッツシングイットへようこそ!
ログインしていません。 ログインすると、無料のメンバーシップに付属する追加の特権を利用できます!
続きを読む
ログインする
登録
elims
反応
急上昇
新着
葉
モデレーター
›
Forum
›
葉
›
Announcements
›
elims
フォローする
1
Megosztani
トピックを追加
探す
0
nogozone
| 02-12-2021 14:52
1
反応
0
roxcyn
| 11-01-2022 15:47
Howdy
ゲスト
飛び出す
保存する
megtakarítás ...
$form.$set(f,{a:'ajax_comment_manage',pop:'in',content_type:'forumtopic',parent_id:'658033',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(''); });
続きを読む:
反応
注目のトピックス
新しいトピック
葉
ゲーム
一般的なディスカッション