Revision: 48522
Author:   tparscal
Date:     2009-03-18 19:46:34 +0000 (Wed, 18 Mar 2009)

Log Message:
-----------
Fixed Opera bug which doesn't allow null as a JSON key.

Modified Paths:
--------------
    trunk/extensions/CommunityVoice/Modules/Ratings.php
    trunk/extensions/CommunityVoice/Resources/CommunityVoice.js

Modified: trunk/extensions/CommunityVoice/Modules/Ratings.php
===================================================================
--- trunk/extensions/CommunityVoice/Modules/Ratings.php 2009-03-18 19:25:29 UTC 
(rev 48521)
+++ trunk/extensions/CommunityVoice/Modules/Ratings.php 2009-03-18 19:46:34 UTC 
(rev 48522)
@@ -214,7 +214,7 @@
                                                                array(
                                                                        'stats' 
=> $stats,
                                                                        
'status' => array(
-                                                                               
'null' => ' ',
+                                                                               
'ready' => ' ',
                                                                                
'sending' => CommunityVoice::getMessage(
                                                                                
        'ratings', 'scale-status-sending'
                                                                                
),
@@ -355,7 +355,7 @@
                        return Js::toObject(  $result );
                }
                // Returns error information
-               return Js::toObject( array( 'rating' => - 1, 'stats' => null ) 
);
+               return Js::toObject( array( 'rating' => - 1, 'stats' => 'ready' 
) );
        }
 
        /**

Modified: trunk/extensions/CommunityVoice/Resources/CommunityVoice.js
===================================================================
--- trunk/extensions/CommunityVoice/Resources/CommunityVoice.js 2009-03-18 
19:25:29 UTC (rev 48521)
+++ trunk/extensions/CommunityVoice/Resources/CommunityVoice.js 2009-03-18 
19:46:34 UTC (rev 48522)
@@ -73,7 +73,7 @@
        var stars = [];
        var labels = {};
        // Sets state
-       var status = null;
+       var status = 'ready';
        var locked = true;
 
        /* Functions */



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

Reply via email to