Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/SimpleSearch/SimpleSearch.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
1 | 1 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/SimpleSearch/SimpleSearch.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/SimpleSearch/SimpleSearch.i18n.php:52089-55192,55247,55251 |
2 | 2 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/SimpleSearch/SimpleSearch.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/SimpleSearch/SimpleSearch.i18n.php:52089-55192,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/UsabilityInitiative.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
3 | 3 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/UsabilityInitiative.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/UsabilityInitiative.i18n.php:52089-55192,55247,55251 |
4 | 4 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/UsabilityInitiative.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/UsabilityInitiative.i18n.php:52089-55192,55247,55251,55269 |
Index: branches/wmf-deployment/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -1,15 +1,16 @@ |
2 | 2 | /* JavaScript for EditToolbar extension */ |
3 | 3 | |
4 | 4 | js2AddOnloadHook( function() { |
5 | | - $j( 'textarea#wpTextbox1' ).wikiEditor( |
6 | | - { 'toolbar': editToolbarConfiguration } |
7 | | - ); |
8 | | -}); |
| 5 | + if ( $j.wikiEditor.isSupported() ) { |
| 6 | + // Remove the old toolbar |
| 7 | + $j( '#toolbar' ).remove(); |
| 8 | + // Build a wikiEditor around the textarea |
| 9 | + $j( 'textarea#wpTextbox1' ).wikiEditor( { 'toolbar': editToolbarConfiguration } ); |
| 10 | + } |
| 11 | +} ); |
9 | 12 | |
10 | 13 | /** |
11 | | - * This enormous structure is what makes the toolbar what it is. Customization |
12 | | - * of this structure prior to the document being ready and thus executing the |
13 | | - * initialization procedure for the toolbar will result in a custom toolbar. |
| 14 | + * Configuration of toolbar |
14 | 15 | */ |
15 | 16 | var editToolbarConfiguration = { |
16 | 17 | // Main section |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/EditToolbar/images |
___________________________________________________________________ |
Name: svn:mergeinfo |
17 | 18 | - /trunk/extensions/UsabilityInitiative/EditToolbar/images:54467-54593,54597,54607,54619,54625,54642,54647-54648,54662-54664,54675,54682,54715,54717,54720,54732,54738,54743,54749,54756,54758,54762,54778,54781,54786,54810-54811,55178,55247,55251 |
18 | 19 | + /trunk/extensions/UsabilityInitiative/EditToolbar/images:54467-54593,54597,54607,54619,54625,54642,54647-54648,54662-54664,54675,54682,54715,54717,54720,54732,54738,54743,54749,54756,54758,54762,54778,54781,54786,54810-54811,55178,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
19 | 20 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php:52089-54882,55144-55192,55247,55251 |
20 | 21 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php:52089-54882,55144-55192,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
21 | 22 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php:52089-55192,55247,55251 |
22 | 23 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/OptIn/OptIn.i18n.php:52089-55192,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/EditWarning/EditWarning.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
23 | 24 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/EditWarning/EditWarning.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.i18n.php:52089-55192,55247,55251 |
24 | 25 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/EditWarning/EditWarning.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/EditWarning/EditWarning.i18n.php:52089-55192,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
25 | 26 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php:52089-55192,55247,55251 |
26 | 27 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php:52089-55192,55247,55251,55269 |
Index: branches/wmf-deployment/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -10,8 +10,22 @@ |
11 | 11 | * ); |
12 | 12 | * ...using the API, which is still be finished. |
13 | 13 | */ |
14 | | -(function($) { |
15 | | -$.wikiEditor = { 'modules': {}, 'instances': [] }; |
| 14 | +( function( $ ) { |
| 15 | + |
| 16 | +$.wikiEditor = { |
| 17 | + 'modules': {}, |
| 18 | + 'instances': [], |
| 19 | + 'isSupported': function() { |
| 20 | + function isSupported( supportedBrowsers ) { |
| 21 | + return $.browser.name in supportedBrowsers && $.browser.versionNumber >= supportedBrowsers[$.browser.name]; |
| 22 | + } |
| 23 | + var supportedBrowsers = { |
| 24 | + 'ltr': { 'msie': 7, 'firefox': 2, 'opera': 9, 'safari': 3, 'chrome': 1, 'camino': 1 }, |
| 25 | + 'rtl': { 'msie': 8, 'firefox': 2, 'opera': 9, 'safari': 3, 'chrome': 1, 'camino': 1 } |
| 26 | + }; |
| 27 | + return isSupported( supportedBrowsers[$( 'body.rtl' ).size() ? 'rtl' : 'ltr'] ); |
| 28 | + } |
| 29 | +}; |
16 | 30 | $.fn.wikiEditor = function() { |
17 | 31 | |
18 | 32 | /* Initialization */ |
— | — | @@ -116,4 +130,4 @@ |
117 | 131 | // Store the context for next time, and support chaining |
118 | 132 | return $(this).data( 'context', context );; |
119 | 133 | |
120 | | -};})(jQuery); |
\ No newline at end of file |
| 134 | +};})(jQuery); |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
___________________________________________________________________ |
Name: svn:mergeinfo |
121 | 135 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js:51646 |
/trunk/extensions/LocalisationUpdate/js/plugins/jquery.wikiEditor.js:55269 |
/trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js:52089-54593,54597,54607,54619,54625,54642,54647-54648,54662-54664,54675,54682,54715,54717,54720,54732,54738,54743,54749,54756,54758,54762,54778,54781,54786,54810-54811,55178,55247,55251,55269,55280 |
Index: branches/wmf-deployment/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -528,8 +528,22 @@ |
529 | 529 | * );
|
530 | 530 | * ...using the API, which is still be finished.
|
531 | 531 | */
|
532 | | -(function($) {
|
533 | | -$.wikiEditor = { 'modules': {}, 'instances': [] };
|
| 532 | +( function( $ ) {
|
| 533 | +
|
| 534 | +$.wikiEditor = {
|
| 535 | + 'modules': {},
|
| 536 | + 'instances': [],
|
| 537 | + 'isSupported': function() {
|
| 538 | + function isSupported( supportedBrowsers ) {
|
| 539 | + return $.browser.name in supportedBrowsers && $.browser.versionNumber >= supportedBrowsers[$.browser.name];
|
| 540 | + }
|
| 541 | + var supportedBrowsers = {
|
| 542 | + 'ltr': { 'msie': 7, 'firefox': 2, 'opera': 9, 'safari': 3, 'chrome': 1, 'camino': 1 },
|
| 543 | + 'rtl': { 'msie': 8, 'firefox': 2, 'opera': 9, 'safari': 3, 'chrome': 1, 'camino': 1 }
|
| 544 | + };
|
| 545 | + return isSupported( supportedBrowsers[$( 'body.rtl' ).size() ? 'rtl' : 'ltr'] );
|
| 546 | + }
|
| 547 | +};
|
534 | 548 | $.fn.wikiEditor = function() {
|
535 | 549 |
|
536 | 550 | /* Initialization */
|
— | — | @@ -634,7 +648,8 @@ |
635 | 649 | // Store the context for next time, and support chaining
|
636 | 650 | return $(this).data( 'context', context );;
|
637 | 651 |
|
638 | | -};})(jQuery);/** |
| 652 | +};})(jQuery);
|
| 653 | +/** |
639 | 654 | * TOC Module for wikiEditor |
640 | 655 | */ |
641 | 656 | (function($) { $.wikiEditor.modules.toc = { |
Index: branches/wmf-deployment/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -40,7 +40,8 @@ |
41 | 41 | return($.os.name=='mac'?13:($.os.name=='linux'?15:16))*row;}
|
42 | 42 | return this.each(function(){$(this).focus();if(this.selectionStart||this.selectionStart=='0'){this.selectionStart=pos;this.selectionEnd=pos;$(this).scrollTop(getCaretScrollPosition(this));}else if(document.selection&&document.selection.createRange){var range=document.selection.createRange();var oldPos=$(this).getCaretPosition();var goBack=false;if(oldPos==pos){pos++;goBack=true;}
|
43 | 43 | range.moveToElementText(this);range.collapse();range.move('character',pos);range.select();this.scrollTop+=range.offsetTop;if(goBack){range.move('character',-1);range.select();}}
|
44 | | -$(this).trigger('scrollToPosition');});}});})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[]};$.fn.wikiEditor=function(){var context=$(this).data('context');if(typeof context!=='undefined'){arguments=$.makeArray(arguments);if(arguments.length>0){var call=arguments.shift();if(call in context.api){context.api[call](context,arguments[0]==undefined?{}:arguments[0]);}
|
| 44 | +$(this).trigger('scrollToPosition');});}});})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[],'isSupported':function(){function isSupported(supportedBrowsers){return $.browser.name in supportedBrowsers&&$.browser.versionNumber>=supportedBrowsers[$.browser.name];}
|
| 45 | +var supportedBrowsers={'ltr':{'msie':7,'firefox':2,'opera':9,'safari':3,'chrome':1,'camino':1},'rtl':{'msie':8,'firefox':2,'opera':9,'safari':3,'chrome':1,'camino':1}};return isSupported(supportedBrowsers[$('body.rtl').size()?'rtl':'ltr']);}};$.fn.wikiEditor=function(){var context=$(this).data('context');if(typeof context!=='undefined'){arguments=$.makeArray(arguments);if(arguments.length>0){var call=arguments.shift();if(call in context.api){context.api[call](context,arguments[0]==undefined?{}:arguments[0]);}
|
45 | 46 | return $(this).data('context',context);}
|
46 | 47 | return $(this);}
|
47 | 48 | var instance=$.wikiEditor.instances.length;context={'$textarea':$(this),'modules':{},'data':{},'instance':instance};$.wikiEditor.instances[instance]=$(this);$(this).wrap($('<div></div>').addClass('wikiEditor-ui')).wrap($('<div></div>').addClass('wikiEditor-ui-bottom')).wrap($('<div></div>').addClass('wikiEditor-ui-text'));context.$ui=$(this).parent().parent().parent();context.$ui.after($('<div style="clear:both;"></div>'));context.$ui.prepend($('<div></div>').addClass('wikiEditor-ui-top'));context.api={addModule:function(context,data){function callModuleApi(module,call,data){if(module in $.wikiEditor.modules&&'fn'in $.wikiEditor.modules[module]&&call in $.wikiEditor.modules[module].fn){$.wikiEditor.modules[module].fn[call](context,data);}}
|
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative/NavigableTOC/NavigableTOC.i18n.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
48 | 49 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative/NavigableTOC/NavigableTOC.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/NavigableTOC/NavigableTOC.i18n.php:52089-55192,55247,55251 |
49 | 50 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative/NavigableTOC/NavigableTOC.i18n.php:51646 |
/trunk/extensions/UsabilityInitiative/NavigableTOC/NavigableTOC.i18n.php:52089-55192,55247,55251,55269 |
Property changes on: branches/wmf-deployment/extensions/UsabilityInitiative |
___________________________________________________________________ |
Name: svn:mergeinfo |
50 | 51 | - /branches/REL1_15/phase3/extensions/UsabilityInitiative:51646 |
/trunk/extensions/UsabilityInitiative:52089-54593,54597,54607,54619,54625,54642,54647-54648,54662-54664,54675,54682,54715,54717,54720,54732,54738,54743,54749,54756,54758,54762,54778,54781,54786,54810-54811,55178,55247,55251 |
51 | 52 | + /branches/REL1_15/phase3/extensions/UsabilityInitiative:51646 |
/trunk/extensions/LocalisationUpdate:55269 |
/trunk/extensions/UsabilityInitiative:52089-54593,54597,54607,54619,54625,54642,54647-54648,54662-54664,54675,54682,54715,54717,54720,54732,54738,54743,54749,54756,54758,54762,54778,54781,54786,54810-54811,55178,55247,55251,55269 |