https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103422

Revision: 103422
Author:   yaron
Date:     2011-11-17 00:21:56 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Another follow-up to r102888 - changed parameter from 'imagepreview' to 'image 
preview', added class to <div> tag around preview image
--This line, And those below, will be ignored--

M    forminputs/SF_TextInput.php

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php

Modified: trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php
===================================================================
--- trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php 
2011-11-17 00:19:49 UTC (rev 103421)
+++ trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php 
2011-11-17 00:21:56 UTC (rev 103422)
@@ -62,7 +62,7 @@
 
                $cssClasses = array( 'sfFancyBox', 'sfUploadable' );
                
-               $showPreview = array_key_exists( 'imagepreview', $other_args );
+               $showPreview = array_key_exists( 'image preview', $other_args );
                
                if ( $showPreview ) {
                        $cssClasses[] = 'sfImagePreview';
@@ -97,7 +97,7 @@
                        
                        $text .= Html::rawElement(
                                'div',
-                               array( 'id' => $input_id . '_imagepreview' ),
+                               array( 'id' => $input_id . '_imagepreview', 
'class' => 'sfImagePreviewWrapper' ),
                                $previewImage
                        );
                }


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

Reply via email to