736
edits
mNo edit summary Tags: Mobile edit Mobile web edit |
mNo edit summary Tags: Mobile edit Mobile web edit |
||
Line 372: | Line 372: | ||
$( "<label>" ) | $( "<label>" ) | ||
.attr( "for", "siQuickFilter" ) | .attr( "for", "siQuickFilter" ) | ||
.text( " | .text( "簡易過濾器:" ), | ||
$( "<input>" ) | $( "<input>" ) | ||
.attr( { "id": "siQuickFilter", "type": "text" } ) | .attr( { "id": "siQuickFilter", "type": "text" } ) | ||
Line 450: | Line 450: | ||
.click( function () { | .click( function () { | ||
var dest = null; | var dest = null; | ||
var PROMPT = " | var PROMPT = "目的地?輸入其中一個:" + SKINS.join( ", " ); | ||
do { | do { | ||
dest = ( window.prompt( PROMPT ) || "" ).toLowerCase(); | dest = ( window.prompt( PROMPT ) || "" ).toLowerCase(); | ||
} while( dest && SKINS.indexOf( dest ) < 0 ) | } while( dest && SKINS.indexOf( dest ) < 0 ) | ||
if( !dest ) return; | if( !dest ) return; | ||
$( this ).text( " | $( this ).text( "移動中" ); | ||
anImport.move( dest ).done( function () { | anImport.move( dest ).done( function () { | ||
conditionalReload( true ); | conditionalReload( true ); | ||
Line 486: | Line 486: | ||
var skinIndex = SKINS.indexOf( pageName.substring( prefixLength ).slice( 0, -3 ) ); | var skinIndex = SKINS.indexOf( pageName.substring( prefixLength ).slice( 0, -3 ) ); | ||
if( skinIndex >= 0 ) { | if( skinIndex >= 0 ) { | ||
return $( "<abbr>" ).text( " | return $( "<abbr>" ).text( "不能安裝" ) | ||
.attr( "title", " | .attr( "title", "此頁面是你的使用者自訂頁面之一,並且" + | ||
( ( skinIndex === 0 ) ? " | ( ( skinIndex === 0 ) ? "會" : "可能" ) + "已經在每個頁面加載時運行。" ); | ||
} | } | ||
} | } | ||
addingInstallLink = true; | addingInstallLink = true; | ||
} else { | } else { | ||
return $( "<abbr>" ).text( " | return $( "<abbr>" ).text( "不能安裝 (不是 JS)" ) | ||
.attr( "title", " | .attr( "title", "頁面內容模型是" + contentModel + ",不是'javascript'" ); | ||
} | } | ||
} | } | ||
Line 686: | Line 686: | ||
if( document.cookie.indexOf( "open_script_installer=yes" ) >= 0 ) { | if( document.cookie.indexOf( "open_script_installer=yes" ) >= 0 ) { | ||
document.cookie = "open_script_installer=; expires=Thu, 01 Jan 1970 00:00:01 GMT"; | document.cookie = "open_script_installer=; expires=Thu, 01 Jan 1970 00:00:01 GMT"; | ||
$( "#script-installer-top-container a:contains(' | $( "#script-installer-top-container a:contains('管理')" ).trigger( "click" ); | ||
} | } | ||
} ); | } ); | ||
} ); | } ); | ||
} )(); | } )(); |