ผลต่างระหว่างรุ่นของ "มีเดียวิกิ:Mobile.js"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Geonuch (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
Geonuch (คุย | ส่วนร่วม)
ตาม enws
ป้ายระบุ: ถูกแทน
 
บรรทัดที่ 1:
/* Any JavaScript here will be loaded for users using the mobile site */
( function ( mw, $ ) {
$( function() {
//link "download as ePub in the toolbar
if( $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 0 , 114 ] ) !== -1 ) {
$( '#page-actions' ).append(
$( '<li>' ).attr( {
id: 'page-actions-export-epub',
class: 'page-actions-menu__list-item',
} ).append(
$( '<a>' ).attr( {
id: 'ca-export-epub',
class: 'export-epub mw-ui-icon mw-ui-icon-element',
href: '//tools.wmflabs.org/wsexport/tool/book.php?lang=th&format=epub&page=' + mw.config.get( 'wgPageName' ),
title: 'ดาวน์โหลดรุ่น EPUB ของหน้านี้'
} ).append("Download EPUB")
)
);
}
} );
} ( mediaWiki, jQuery ) );