۱۰۷
ویرایش
بدون خلاصۀ ویرایش |
جز (۱ نسخه واردشده) |
||
(۲ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
خط ۹۲: | خط ۹۲: | ||
}; | }; | ||
} | } | ||
var | var iranpedia_api = new Morebits.wiki.api( 'در حال گرفتن پیوندهای برگشتی', query, Twinkle.unlink.callbacks.display.backlinks ); | ||
iranpedia_api.params = { form: form, Window: Window, image: mw.config.get('wgNamespaceNumber') === 6 }; | |||
iranpedia_api.post(); | |||
var root = document.createElement( 'div' ); | var root = document.createElement( 'div' ); | ||
root.style.padding = '15px'; // just so it doesn't look broken | root.style.padding = '15px'; // just so it doesn't look broken | ||
Morebits.status.init( root ); | Morebits.status.init( root ); | ||
iranpedia_api.statelem.status( "در حال بارگیری..." ); | |||
Window.setContent( root ); | Window.setContent( root ); | ||
Window.display(); | Window.display(); | ||
خط ۱۸۴: | خط ۱۸۴: | ||
namespaces = []; | namespaces = []; | ||
$.each(Twinkle.getPref('unlinkNamespaces'), function(k, v) { | $.each(Twinkle.getPref('unlinkNamespaces'), function(k, v) { | ||
namespaces.push(Morebits. | namespaces.push(Morebits.iranpedia.namespacesFriendly[v]); | ||
}); | }); | ||
apiobj.params.form.append( { | apiobj.params.form.append( { | ||
خط ۲۳۰: | خط ۲۳۰: | ||
namespaces = []; | namespaces = []; | ||
$.each(Twinkle.getPref('unlinkNamespaces'), function(k, v) { | $.each(Twinkle.getPref('unlinkNamespaces'), function(k, v) { | ||
namespaces.push(Morebits. | namespaces.push(Morebits.iranpedia.namespacesFriendly[v]); | ||
}); | }); | ||
apiobj.params.form.append( { | apiobj.params.form.append( { |