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

Revision: 114095
Author:   wikinaut
Date:     2012-03-18 08:08:35 +0000 (Sun, 18 Mar 2012)
Log Message:
-----------
restricting the clickable area and colour when hovering, and pointer cursor, to 
really only the label tag area

Modified Paths:
--------------
    trunk/extensions/AJAXPoll/AJAXPoll.php
    trunk/extensions/AJAXPoll/resources/ajaxpoll.js

Modified: trunk/extensions/AJAXPoll/AJAXPoll.php
===================================================================
--- trunk/extensions/AJAXPoll/AJAXPoll.php      2012-03-18 07:15:30 UTC (rev 
114094)
+++ trunk/extensions/AJAXPoll/AJAXPoll.php      2012-03-18 08:08:35 UTC (rev 
114095)
@@ -19,7 +19,7 @@
  * @author Jack Phoenix <[email protected]>
  * @author Thomas Gries
  * @maintainer Thomas Gries
- * @version 1.76
+ * @version 1.77
  * @link http://www.mediawiki.org/wiki/Extension:AJAX_Poll Documentation
  */
 
@@ -31,7 +31,7 @@
 $wgExtensionCredits['parserhook'][] = array(
        'path' => __FILE__,
        'name' => 'AJAX Poll',
-       'version' => '1.76 20120318',
+       'version' => '1.77 20120318',
        'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' 
),
        'descriptionmsg' => 'ajaxpoll-desc',
        'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',

Modified: trunk/extensions/AJAXPoll/resources/ajaxpoll.js
===================================================================
--- trunk/extensions/AJAXPoll/resources/ajaxpoll.js     2012-03-18 07:15:30 UTC 
(rev 114094)
+++ trunk/extensions/AJAXPoll/resources/ajaxpoll.js     2012-03-18 08:08:35 UTC 
(rev 114095)
@@ -18,16 +18,16 @@
 );
 
 /* attach click handler */
-$(".ajaxpoll-answer")
+$(".ajaxpoll-answer-name label")
        .live("click",
                function(event){
                        event.preventDefault();
                        event.stopPropagation();
-                       $this = $(this);
+                       $this = $(this).parent().parent();
                        var poll = $this.attr( "poll" );
                        var answer = $this.attr("answer");
                        
$this.find(".ajaxpoll-hover-vote").addClass("ajaxpoll-checkevent");
-                       $this.find("input").prop("checked",true);
+                       $this.find("input").prop("checked","checked");
                        $( "#ajaxpoll-ajax-"+poll )
                                .html("Please wait, submitting your vote.")
                                .css("display","block");


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

Reply via email to