Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -79,13 +79,13 @@ |
80 | 80 | array( 'src' => 'js/plugins/jquery.wikiEditor.toc.js', 'version' => 97 ), |
81 | 81 | array( 'src' => 'js/plugins/jquery.wikiEditor.preview.js', 'version' => 11 ), |
82 | 82 | array( 'src' => 'js/plugins/jquery.wikiEditor.templateEditor.js', 'version' => 66 ), |
83 | | - array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 3 ), |
| 83 | + array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 4 ), |
84 | 84 | ), |
85 | 85 | 'combined' => array( |
86 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 350 ), |
| 86 | + array( 'src' => 'js/plugins.combined.js', 'version' => 351 ), |
87 | 87 | ), |
88 | 88 | 'minified' => array( |
89 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 350 ), |
| 89 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 351 ), |
90 | 90 | ), |
91 | 91 | ), |
92 | 92 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.publish.js |
— | — | @@ -65,20 +65,21 @@ |
66 | 66 | }); |
67 | 67 | |
68 | 68 | // Reformat the copyright warning stuff |
69 | | - var copywarnHTML = $( '#editpage-copywarn' ).html(); |
| 69 | + var copyWarnHTML = $( '#editpage-copywarn' ).html(); |
70 | 70 | |
71 | 71 | // TODO: internationalize by splitting on other characters that end statements |
72 | | - var copywarnStatements = copywarnHTML.split( '. ' ); |
73 | | - for ( var i = 0; i < copywarnStatements.length; i++ ) { |
74 | | - if ( copywarnStatements[i] != '' ) { |
75 | | - newcopywarnHTML += '<li>' + copywarnStatements[i] + '. </li>'; |
| 72 | + var copyWarnStatements = copyWarnHTML.split( '. ' ); |
| 73 | + var newCopyWarnHTML = ''; |
| 74 | + for ( var i = 0; i < copyWarnStatements.length; i++ ) { |
| 75 | + if ( copyWarnStatements[i] != '' ) { |
| 76 | + newCopyWarnHTML += '<li>' + copyWarnStatements[i] + '. </li>'; |
76 | 77 | } |
77 | 78 | } |
78 | | - newcopywarnHTML += '</ul>'; |
| 79 | + newCopyWarnHTML += '</ul>'; |
79 | 80 | |
80 | 81 | // No list if there's only one element |
81 | 82 | $(this).find( '.wikiEditor-dialog-copywarn' ).html( |
82 | | - copywarnStatements.length > 1 ? newcopywarnHTML : copywarnHTML ); |
| 83 | + copyWarnStatements.length > 1 ? newCopyWarnHTML : copyWarnHTML ); |
83 | 84 | |
84 | 85 | if ( $( '#wpMinoredit' ).size() == 0 ) |
85 | 86 | $( '#wikiEditor-' + context.instance + '-dialog-minor' ).hide(); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -9208,20 +9208,21 @@ |
9209 | 9209 | }); |
9210 | 9210 | |
9211 | 9211 | // Reformat the copyright warning stuff |
9212 | | - var copywarnHTML = $( '#editpage-copywarn' ).html(); |
| 9212 | + var copyWarnHTML = $( '#editpage-copywarn' ).html(); |
9213 | 9213 | |
9214 | 9214 | // TODO: internationalize by splitting on other characters that end statements |
9215 | | - var copywarnStatements = copywarnHTML.split( '. ' ); |
9216 | | - for ( var i = 0; i < copywarnStatements.length; i++ ) { |
9217 | | - if ( copywarnStatements[i] != '' ) { |
9218 | | - newcopywarnHTML += '<li>' + copywarnStatements[i] + '. </li>'; |
| 9215 | + var copyWarnStatements = copyWarnHTML.split( '. ' ); |
| 9216 | + var newCopyWarnHTML = ''; |
| 9217 | + for ( var i = 0; i < copyWarnStatements.length; i++ ) { |
| 9218 | + if ( copyWarnStatements[i] != '' ) { |
| 9219 | + newCopyWarnHTML += '<li>' + copyWarnStatements[i] + '. </li>'; |
9219 | 9220 | } |
9220 | 9221 | } |
9221 | | - newcopywarnHTML += '</ul>'; |
| 9222 | + newCopyWarnHTML += '</ul>'; |
9222 | 9223 | |
9223 | 9224 | // No list if there's only one element |
9224 | 9225 | $(this).find( '.wikiEditor-dialog-copywarn' ).html( |
9225 | | - copywarnStatements.length > 1 ? newcopywarnHTML : copywarnHTML ); |
| 9226 | + copyWarnStatements.length > 1 ? newCopyWarnHTML : copyWarnHTML ); |
9226 | 9227 | |
9227 | 9228 | if ( $( '#wpMinoredit' ).size() == 0 ) |
9228 | 9229 | $( '#wikiEditor-' + context.instance + '-dialog-minor' ).hide(); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -639,8 +639,8 @@ |
640 | 640 | <label for="wikiEditor-'+context.instance+'-dialog-watch"\ |
641 | 641 | rel="wikieditor-publish-dialog-watch"></label>\ |
642 | 642 | </form>\ |
643 | | - </div>',init:function(){$(this).find('[rel]').each(function(){$(this).text(mw.usability.getMsg($(this).attr('rel')));});var copywarnHTML=$('#editpage-copywarn').html();var copywarnStatements=copywarnHTML.split('. ');for(var i=0;i<copywarnStatements.length;i++){if(copywarnStatements[i]!=''){newcopywarnHTML+='<li>'+copywarnStatements[i]+'. </li>';}} |
644 | | -newcopywarnHTML+='</ul>';$(this).find('.wikiEditor-dialog-copywarn').html(copywarnStatements.length>1?newcopywarnHTML:copywarnHTML);if($('#wpMinoredit').size()==0) |
| 643 | + </div>',init:function(){$(this).find('[rel]').each(function(){$(this).text(mw.usability.getMsg($(this).attr('rel')));});var copyWarnHTML=$('#editpage-copywarn').html();var copyWarnStatements=copyWarnHTML.split('. ');var newCopyWarnHTML='';for(var i=0;i<copyWarnStatements.length;i++){if(copyWarnStatements[i]!=''){newCopyWarnHTML+='<li>'+copyWarnStatements[i]+'. </li>';}} |
| 644 | +newCopyWarnHTML+='</ul>';$(this).find('.wikiEditor-dialog-copywarn').html(copyWarnStatements.length>1?newCopyWarnHTML:copyWarnHTML);if($('#wpMinoredit').size()==0) |
645 | 645 | $('#wikiEditor-'+context.instance+'-dialog-minor').hide();else if($('#wpMinoredit').is(':checked')) |
646 | 646 | $('#wikiEditor-'+context.instance+'-dialog-minor').attr('checked','checked');if($('#wpWatchthis').size()==0) |
647 | 647 | $('#wikiEditor-'+context.instance+'-dialog-watch').hide();else if($('#wpWatchthis').is(':checked')) |