Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58301


Change subject: Add jquery.placeholder plugin support
......................................................................

Add jquery.placeholder plugin support

This is supposed to make it work correctly in IE9.

Bug: 47039

Change-Id: Ib483b4d15034eaf726a7a0d42ab4f5170fc5abde
---
M Resources.php
M resources/js/ext.translate.editor.js
M resources/js/ext.translate.groupselector.js
3 files changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/01/58301/1

diff --git a/Resources.php b/Resources.php
index c8bdce0..87adfea 100644
--- a/Resources.php
+++ b/Resources.php
@@ -52,6 +52,7 @@
                'mediawiki.jqueryMsg',
                'jquery.makeCollapsible',
                'jquery.tipsy',
+               'jquery.placeholder',
        ),
        'messages' => array(
                'tux-status-translated',
@@ -111,6 +112,7 @@
                'ext.translate.statsbar',
                'mediawiki.jqueryMsg',
                'ext.translate.loader',
+               'jquery.placeholder',
        ),
        'messages' => array(
                'translate-msggroupselector-projects',
diff --git a/resources/js/ext.translate.editor.js 
b/resources/js/ext.translate.editor.js
index a239fc3..d524d16 100644
--- a/resources/js/ext.translate.editor.js
+++ b/resources/js/ext.translate.editor.js
@@ -394,7 +394,8 @@
                                        ) {
                                                $this.height( $this.height() + 
parseFloat( $this.css( 'fontSize' ) ) );
                                        }
-                               } );
+                               } )
+                               .placeholder();
 
                        $textArea.on( 'input propertychange', function () {
                                var $textArea = $( this ),
@@ -670,7 +671,8 @@
                                                        } )
                                                        .on( 'input 
propertychange', function () {
                                                                
$messageDescSaveButton.prop( 'disabled', false );
-                                                       } ),
+                                                       } )
+                                                       .placeholder(),
                                                $( '<div>' )
                                                        .addClass( 'row' )
                                                        .append(
diff --git a/resources/js/ext.translate.groupselector.js 
b/resources/js/ext.translate.groupselector.js
index 6058bb9..e4096fc 100644
--- a/resources/js/ext.translate.groupselector.js
+++ b/resources/js/ext.translate.groupselector.js
@@ -64,6 +64,7 @@
                                                .attr( {
                                                        placeholder: mw.msg( 
'translate-msggroupselector-search-placeholder' )
                                                } )
+                                               .placeholder()
                                );
 
                        $listFilters = $( '<div>' ).addClass( 'filters six 
columns' )

-- 
To view, visit https://gerrit.wikimedia.org/r/58301
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib483b4d15034eaf726a7a0d42ab4f5170fc5abde
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to