User:PB2008/script-installer.js: Difference between revisions

From Test Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Tags: Mobile edit Mobile web edit
Line 357: Line 357:
                 $( "<label>" )
                 $( "<label>" )
                     .attr( "for", "siNormalize" )
                     .attr( "for", "siNormalize" )
                     .text( 'Show "normalize" links?' ),
                     .text( '顯示“標準化”連結?' ),
                 $( "<input>" )
                 $( "<input>" )
                     .attr( { "id": "siMove", "type": "checkbox" } )
                     .attr( { "id": "siMove", "type": "checkbox" } )
Line 365: Line 365:
                 $( "<label>" )
                 $( "<label>" )
                     .attr( "for", "siMove" )
                     .attr( "for", "siMove" )
                     .text( 'Show "move" links?' ) ) );
                     .text( '顯示"移動"連結?' ) ) );
         if( scriptCount > NUM_SCRIPTS_FOR_SEARCH ) {
         if( scriptCount > NUM_SCRIPTS_FOR_SEARCH ) {
             container.append( $( "<div>" )
             container.append( $( "<div>" )
Line 405: Line 405:
                             " (",
                             " (",
                             $( "<a>" )
                             $( "<a>" )
                                 .text( "normalize" )
                                 .text( "標準化" )
                                 .click( function () {
                                 .click( function () {
                                     normalize( targetName ).done( function () {
                                     normalize( targetName ).done( function () {
Line 425: Line 425:
                                         " (",
                                         " (",
                                         $( "<a>" )
                                         $( "<a>" )
                                             .text( "Uninstall" )
                                             .text( "解除安裝" )
                                             .click( function () {
                                             .click( function () {
                                                 $( this ).text( "Uninstalling..." );
                                                 $( this ).text( "正在解除安裝..." );
                                                 anImport.uninstall().done( function () {
                                                 anImport.uninstall().done( function () {
                                                     conditionalReload( true );
                                                     conditionalReload( true );
Line 434: Line 434:
                                         " | ",
                                         " | ",
                                         $( "<a>" )
                                         $( "<a>" )
                                             .text( anImport.disabled ? "Enable" : "Disable" )
                                             .text( anImport.disabled ? "啟用" : "取消啟用" )
                                             .click( function () {
                                             .click( function () {
                                                 $( this ).text( $( this ).text().replace( /e$/, "ing" ) );
                                                 $( this ).text( $( this ).text().replace( /e$/, "ing" ) );
Cookies help us deliver our services. By using our services, you agree to our use of cookies.