736
edits
mNo edit summary Tags: Mobile edit Mobile web edit |
mNo edit summary Tags: Mobile edit Mobile web edit |
||
Line 511: | Line 511: | ||
$( "<abbr>" ).append( | $( "<abbr>" ).append( | ||
$( "<img>" ).attr( "src", "https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Achtung-yellow.svg/20px-Achtung-yellow.svg.png" ).addClass( "warning" ), | $( "<img>" ).attr( "src", "https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Achtung-yellow.svg/20px-Achtung-yellow.svg.png" ).addClass( "warning" ), | ||
"( | "(不安全)" ) | ||
.attr( "title", "不是User空間或MediaWiki空間的安裝"+ | .attr( "title", "不是User空間或MediaWiki空間的安裝"+ | ||
"受保護的頁面是臨時的,將來可能會被刪除。" ) ); | "受保護的頁面是臨時的,將來可能會被刪除。" ) ); | ||
Line 521: | Line 521: | ||
installElement.prepend( $( "<a>" ) | installElement.prepend( $( "<a>" ) | ||
.attr( "id", "script-installer-main-install" ) | .attr( "id", "script-installer-main-install" ) | ||
.text( localScriptsByName[ fixedPageName ] ? " | .text( localScriptsByName[ fixedPageName ] ? "取消安裝" : "安裝" ) | ||
.click( makeLocalInstallClickHandler( fixedPageName ) ) ); | .click( makeLocalInstallClickHandler( fixedPageName ) ) ); | ||
return installElement; | return installElement; | ||
Line 566: | Line 566: | ||
.append( $( "<button>" ) | .append( $( "<button>" ) | ||
.addClass( "mw-ui-button mw-ui-progressive mw-ui-big" ) | .addClass( "mw-ui-button mw-ui-progressive mw-ui-big" ) | ||
.text( localScriptsByName[ scriptName ] ? " | .text( localScriptsByName[ scriptName ] ? "解決安裝" : "安裝" ) | ||
.click( makeLocalInstallClickHandler( scriptName ) ) ) ) ); | .click( makeLocalInstallClickHandler( scriptName ) ) ) ) ); | ||
} ); | } ); |