打开/关闭菜单
1680
2.2万
6525
11.7万
舰R百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

MediaWiki:Group-sysop.js:修订间差异

MediaWiki界面页面
AnnAngela留言 | 贡献
无编辑摘要
AnnAngela留言 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第64行: 第64行:
                             'format': 'json',
                             'format': 'json',
                             'title': '用户讨论:' + userName,
                             'title': '用户讨论:' + userName,
                             'summary': 'Welcome to MoegirlPedia',
                             'summary': 'Welcome to ZJSNR Wiki',
                             'text': message,
                             'text': message
                            'tags': 'Welcome to ZJSNR Wiki'
                         }).then(function(data) {
                         }).then(function(data) {
                             $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">通信成功!继续努力哦~</span>');
                             $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">通信成功!继续努力哦~</span>');
                             console.debug('和萌百服务器通信成功,编辑成功! \n' + (data.error != 'internal_api_error_Exception' ? ('编辑详情:' + JSON.stringify(data).replace(/[{}\"]/g, '').replace(/\:\,/, ',')) : '萌百服务器返回"internal_api_error_Exception",你们都懂的_(:3 」∠ )_ ') + '。');
                             console.debug('和萌百服务器通信成功,编辑成功! \n' + (data.error != 'internal_api_error_Exception' ? ('编辑详情:' + JSON.stringify(data).replace(/[{}\"]/g, '').replace(/\:\,/, ',')) : '萌百服务器返回"internal_api_error_Exception",你们都懂的_(:3 」∠ )_ ') + '。');
                             unbindFun();
                             unbindFun();
                             $('#mw-content-text a.new[href="' + href + '"]').removeClass('new sendWelcomeMessageLink unsend').attr('href', '/User_talk:' + userName).unbind('click.sendWelcomeMessage'); //js<a>对象的href是绝对url……
                             $('#mw-content-text a.new[href="' + encodeURI(href) + '"]').removeClass('new sendWelcomeMessageLink unsend').attr('href', '/User_talk:' + userName).unbind('click.sendWelcomeMessage'); //js<a>对象的href是绝对url……
                         }, function(jqXHR, textStatus) {
                         }, function(textStatus, status) {
                             if (data.error == 'internal_api_error_Exception') {
                             if (textStatus === 'internal_api_error_Exception') {
                                 $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">通信成功!继续努力哦~</span>');
                                 $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">通信成功!继续努力哦~</span>');
                                 console.debug('和萌百服务器通信成功,编辑成功! \n' + (data.error != 'internal_api_error_Exception' ? ('编辑详情:' + JSON.stringify(data).replace(/[{}\"]/g, '').replace(/\:\,/, ',')) : '萌百服务器返回"internal_api_error_Exception",你们都懂的_(:3 」∠ )_ ') + '。');
                                 console.debug('和萌百服务器通信成功,编辑成功! \n萌百服务器返回"internal_api_error_Exception",你们都懂的_(:3 」∠ )_ 。');
                                 unbindFun();
                                 unbindFun();
                                 $('#mw-content-text a.new[href="' + href + '"]').removeClass('new sendWelcomeMessageLink unsend').attr('href', '/User_talk:' + userName).unbind('click.sendWelcomeMessage'); //js<a>对象的href是绝对url……
                                 $('#mw-content-text a.new[href="' + encodeURI(href) + '"]').removeClass('new sendWelcomeMessageLink unsend').attr('href', '/User_talk:' + userName).unbind('click.sendWelcomeMessage'); //js<a>对象的href是绝对url……
                             } else if ($.isPlainObject(textStatus)) {
                             } else if ($.isPlainObject(status)) {
                                 $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">正在通信中(2/2)……失败!请重试!</span>');
                                 $('#welcomeAsk').empty().append('<span id="welcomeAskFinished">正在通信中(2/2)……失败!请重试!</span>');
                                 errorFun('和萌百服务器通信成功,但编辑失败!\n编辑详情:' + JSON.stringify(textStatus).replace(/[{}\"]/g, '').replace(/\:\,/, ','));
                                 errorFun('和萌百服务器通信成功,但编辑失败!\n编辑详情:' + JSON.stringify(status).replace(/[{}\"]/g, '').replace(/\:\,/g, ','));
                                 unbindFun();
                                 unbindFun();
                                 self.addClass('unsend');
                                 self.addClass('unsend');