Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | /* Configuration */ |
23 | 23 | |
24 | 24 | // Set this to false to include all plugins individually |
25 | | -$wgUsabilityInitiativeResourceMode = 'raw'; |
| 25 | +$wgUsabilityInitiativeResourceMode = 'minified'; |
26 | 26 | |
27 | 27 | /* Setup */ |
28 | 28 | |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.publish.js |
— | — | @@ -64,20 +64,19 @@ |
65 | 65 | $(this).text( mw.usability.getMsg( $(this).attr( 'rel' ) ) ); |
66 | 66 | }); |
67 | 67 | |
68 | | - //reformat the copyright warning stuff |
| 68 | + // Reformat the copyright warning stuff |
69 | 69 | var copywarnHTML = $( '#editpage-copywarn' ).html(); |
70 | 70 | |
71 | | - //TODO: internationalize by splitting on other characters that end statements |
72 | | - var copywarnStatements = copywarnHTML.split(". "); |
73 | | - var newcopywarnHTML = "<ul>"; |
74 | | - for(var i = 0; i < copywarnStatements.length; i++){ |
75 | | - if(copywarnStatements[i] != ""){ |
76 | | - newcopywarnHTML += "<li>" + copywarnStatements[i] + ". </li>" ; |
| 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>'; |
77 | 76 | } |
78 | 77 | } |
79 | | - newcopywarnHTML += "</ul>"; |
| 78 | + newcopywarnHTML += '</ul>'; |
80 | 79 | |
81 | | - //no list if there's only one element |
| 80 | + // No list if there's only one element |
82 | 81 | $(this).find( '.wikiEditor-dialog-copywarn' ).html( |
83 | 82 | copywarnStatements.length > 1 ? newcopywarnHTML : copywarnHTML ); |
84 | 83 | |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -9206,20 +9206,19 @@ |
9207 | 9207 | $(this).text( mw.usability.getMsg( $(this).attr( 'rel' ) ) ); |
9208 | 9208 | }); |
9209 | 9209 | |
9210 | | - //reformat the copyright warning stuff |
| 9210 | + // Reformat the copyright warning stuff |
9211 | 9211 | var copywarnHTML = $( '#editpage-copywarn' ).html(); |
9212 | 9212 | |
9213 | | - //TODO: internationalize by splitting on other characters that end statements |
9214 | | - var copywarnStatements = copywarnHTML.split(". "); |
9215 | | - var newcopywarnHTML = "<ul>"; |
9216 | | - for(var i = 0; i < copywarnStatements.length; i++){ |
9217 | | - if(copywarnStatements[i] != ""){ |
9218 | | - newcopywarnHTML += "<li>" + copywarnStatements[i] + ". </li>" ; |
| 9213 | + // TODO: internationalize by splitting on other characters that end statements |
| 9214 | + var copywarnStatements = copywarnHTML.split( '. ' ); |
| 9215 | + for ( var i = 0; i < copywarnStatements.length; i++ ) { |
| 9216 | + if ( copywarnStatements[i] != '' ) { |
| 9217 | + newcopywarnHTML += '<li>' + copywarnStatements[i] + '. </li>'; |
9219 | 9218 | } |
9220 | 9219 | } |
9221 | | - newcopywarnHTML += "</ul>"; |
| 9220 | + newcopywarnHTML += '</ul>'; |
9222 | 9221 | |
9223 | | - //no list if there's only one element |
| 9222 | + // No list if there's only one element |
9224 | 9223 | $(this).find( '.wikiEditor-dialog-copywarn' ).html( |
9225 | 9224 | copywarnStatements.length > 1 ? newcopywarnHTML : copywarnHTML ); |
9226 | 9225 | |
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(". ");var newcopywarnHTML="<ul>";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('. ');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')) |