[Movecommons-commits] r338 - in trunk: src wp-theme

Mario Gallegos mgallegos at ourproject.org
Thu May 10 20:54:19 CEST 2012


Author: mgallegos
Date: 2012-05-10 20:54:19 +0200 (Thu, 10 May 2012)
New Revision: 338

Modified:
   trunk/src/jquery.checkbox.min.js
   trunk/src/mc.css
   trunk/wp-theme/mc2-form.php
Log:


Modified: trunk/src/jquery.checkbox.min.js
===================================================================
--- trunk/src/jquery.checkbox.min.js	2012-05-10 18:43:02 UTC (rev 337)
+++ trunk/src/jquery.checkbox.min.js	2012-05-10 18:54:19 UTC (rev 338)
@@ -1 +1 @@
-(function($){var i=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation()};$.fn.checkbox=function(f){try{document.execCommand('BackgroundImageCache',false,true)}catch(e){}var g={cls:'jquery-checkbox',empty:'/mc/0.1/images/empty.png'};g=$.extend(g,f||{});var h=function(a){var b=a.checked;var c=a.disabled;var d=$(a);if(a.stateInterval)clearInterval(a.stateInterval);a.stateInterval=setInterval(function(){if(a.disabled!=c)d.trigger((c=!!a.disabled)?'disable':'enable');if(a.checked!=b)d.trigger((b=!!a.checked)?'check':'uncheck')},10);return d};return this.each(function(){var a=this;var b=h(a);if(a.wrapper)a.wrapper.remove();a.wrapper=$('<span class="'+g.cls+'"><span class="mark"><img src="'+g.empty+'" /></span></span>');a.wrapperInner=a.wrapper.children('span:eq(0)');a.wrapper.hover(function(e){a.wrapperInner.addClass(g.cls+'-hover');i(e)},function(e){a.wrapperInner.removeClass(g.cls+'-hover');i(e)});b.css({position:'absolute',zIndex:-1,visibility:'hidden'}).after(a.wrapper);var c=false;if(b.attr('id')){c=$('label[for='+b.attr('id')+']');if(!c.length)c=false}if(!c){c=b.closest?b.closest('label'):b.parents('label:eq(0)');if(!c.length)c=false}if(c){c.hover(function(e){a.wrapper.trigger('mouseover',[e])},function(e){a.wrapper.trigger('mouseout',[e])});c.click(function(e){b.trigger('click',[e]);i(e);return false})}a.wrapper.click(function(e){b.trigger('click',[e]);i(e);return false});b.click(function(e){i(e)});b.bind('disable',function(){a.wrapperInner.addClass(g.cls+'-disabled')}).bind('enable',function(){a.wrapperInner.removeClass(g.cls+'-disabled')});b.bind('check',function(){a.wrapper.addClass(g.cls+'-checked')}).bind('uncheck',function(){a.wrapper.removeClass(g.cls+'-checked')});$('img',a.wrapper).bind('dragstart',function(){return false}).bind('mousedown',function(){return false});if(window.getSelection)a.wrapper.css('MozUserSelect','none');if(a.checked)a.wrapper.addClass(g.cls+'-checked');if(a.disabled)a.wrapperInner.addClass(g.cls+'-disabled')})}})(jQuery);
\ No newline at end of file
+(function($){var i=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation()};$.fn.checkbox=function(f){try{document.execCommand('BackgroundImageCache',false,true)}catch(e){}var g={cls:'jquery-checkbox',empty:'/mc/0.1/images/empty.png'};g=$.extend(g,f||{});var h=function(a){var b=a.checked;var c=a.disabled;var d=$(a);if(a.stateInterval)clearInterval(a.stateInterval);a.stateInterval=setInterval(function(){if(a.disabled!=c)d.trigger((c=!!a.disabled)?'disable':'enable');if(a.checked!=b)d.trigger((b=!!a.checked)?'check':'uncheck')},10);return d};return this.each(function(){var a=this;var b=h(a);if(a.wrapper)a.wrapper.remove();a.wrapper=$('<span class="'+g.cls+'"><span class="mark"><img src="/mc/0.1/images/'+g.empty+'" /></span></span>');a.wrapperInner=a.wrapper.children('span:eq(0)');a.wrapper.hover(function(e){a.wrapperInner.addClass(g.cls+'-hover');i(e)},function(e){a.wrapperInner.removeClass(g.cls+'-hover');i(e)});b.css({position:'absolute',zIndex:-1,visibility:'hidden'}).after(a.wrapper);var c=false;if(b.attr('id')){c=$('label[for='+b.attr('id')+']');if(!c.length)c=false}if(!c){c=b.closest?b.closest('label'):b.parents('label:eq(0)');if(!c.length)c=false}if(c){c.hover(function(e){a.wrapper.trigger('mouseover',[e])},function(e){a.wrapper.trigger('mouseout',[e])});c.click(function(e){b.trigger('click',[e]);i(e);return false})}a.wrapper.click(function(e){b.trigger('click',[e]);i(e);return false});b.click(function(e){i(e)});b.bind('disable',function(){a.wrapperInner.addClass(g.cls+'-disabled')}).bind('enable',function(){a.wrapperInner.removeClass(g.cls+'-disabled')});b.bind('check',function(){a.wrapper.addClass(g.cls+'-checked')}).bind('uncheck',function(){a.wrapper.removeClass(g.cls+'-checked')});$('img',a.wrapper).bind('dragstart',function(){return false}).bind('mousedown',function(){return false});if(window.getSelection)a.wrapper.css('MozUserSelect','none');if(a.checked)a.wrapper.addClass(g.cls+'-checked');if(a.disabled)a.wrapperInner.addClass(g.cls+'-disabled')})}})(jQuery);
\ No newline at end of file

Modified: trunk/src/mc.css
===================================================================
--- trunk/src/mc.css	2012-05-10 18:43:02 UTC (rev 337)
+++ trunk/src/mc.css	2012-05-10 18:54:19 UTC (rev 338)
@@ -237,7 +237,7 @@
 }
 
 .mc-form-descbox {
-  cursor: pointer;
+  /*cursor: pointer;*/
   padding: 5px;
   width: 280px;
   font-size: 16px;
@@ -291,7 +291,7 @@
   z-index: 50;
   top: -30px;
   margin-bottom: -20px;
-  cursor: pointer;
+  /*cursor: pointer;*/
   width:60px;
 }
 

Modified: trunk/wp-theme/mc2-form.php
===================================================================
--- trunk/wp-theme/mc2-form.php	2012-05-10 18:43:02 UTC (rev 337)
+++ trunk/wp-theme/mc2-form.php	2012-05-10 18:54:19 UTC (rev 338)
@@ -128,12 +128,12 @@
 	  		<div style="float: left;" class="mc-form-category-group-a-v2">		  	
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" id="mc-form-category-group-b">				    
 				  	<img src="/mc/0.1/images/cat-selected.png" alt="selected" class="mc-cat-selected mc-cat-selected-a" id="mc-cat-selected-rp" />				  	
-				  	<div id="mc-form-rp" class="mc-form-rounded mc-form-descbox mc-form-descbox-a" title="<?php _e("Click to select", "mc"); ?>">
+				  	<div id="mc-form-rp" class="mc-form-rounded mc-form-descbox mc-form-descbox-a">
 				  		<!-- 
 				    	<div id="mc-form-more-link-rp" class="mc-form-link"><?php _e("What is this?", "mc"); ?></div>
 				    	<div id="mc-form-less-link-rp" class="mc-form-link"><?php _e("less info", "mc"); ?></div>
 				    	-->
-				    	<div class="mc-form-descbox-header"><?php _e("Reproducible", "mc"); ?></div>
+				    	<div class="mc-form-descbox-header"><?php _e("Reproducible", "mc"); ?><input id="rp-checkbox" name="rp-checkbox" type="checkbox" value="N" onclick="clickCheckBox('rp')"></div>
 				    	<div class="mc-form-descbox-intro"><?php _e("Your initiative is visible, open and transparent, which allows it to be adapted by others", "mc"); ?></div>
 					    <div id="mc-form-more-text-rp" class="mc-form-more-text-v2">
 							<?php _e("<ul> <li>The initiative is easily visible to anyone, providing the necessary online material</li> <li>The initiative has transparent procedures and results</li> <li>The initiative allows others to copy and adapt their procedures and materials, probably using <a href=\"http://creativecommons.org/\">Creative Commons</a> licenses for them</li> </ul>", "mc"); ?>
@@ -202,12 +202,12 @@
 		  	<div style="float: left;" class="mc-form-category-group-a-v2">
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" style="padding-top: 35px;" id="mc-form-category-group-c">				    
 				  	<img src="/mc/0.1/images/cat-selected.png" alt="selected" class="mc-cat-selected mc-cat-selected-a" id="mc-cat-selected-rc" />				  	
-				  	<div id="mc-form-rc" class="mc-form-rounded mc-form-descbox mc-form-descbox-a" title="<?php _e("Click to select", "mc"); ?>">
+				  	<div id="mc-form-rc" class="mc-form-rounded mc-form-descbox mc-form-descbox-a">
 				  		<!-- 
 				    	<div id="mc-form-more-link-rc" class="mc-form-link"><?php _e("What is this?", "mc"); ?></div>
 				    	<div id="mc-form-less-link-rc" class="mc-form-link"><?php _e("less info", "mc"); ?></div>
 				    	-->
-				    	<div class="mc-form-descbox-header"><?php _e("Reinforcing the Commons", "mc"); ?></div>
+				    	<div class="mc-form-descbox-header"><?php _e("Reinforcing the Commons", "mc"); ?><input id="rc-checkbox" name="rc-checkbox" type="checkbox" value="N" onclick="clickCheckBox('rc')"></div>
 				    	<div class="mc-form-descbox-intro"><?php _e("Your initiative protectes/expands The Commons, resources that are collectively owned", "mc"); ?></div>
 					    <div id="mc-form-more-text-rc" class="mc-form-more-text-v2">
 					    	<?php _e("The Commons are those resources that are collectively owned or shared among populations. Thus, your initiative is promoting The Commons by focusing its work in protecting/expanding any of them in any particular area of action", "mc"); ?>
@@ -250,12 +250,12 @@
 		  	<div style="float: left;" class="mc-form-category-group-a-v2">		  	
 			  	<div class="mc-form-rounded mc-form-category-group-v2 float-left" id="mc-form-category-group-d">			    
 				  	<img src="/mc/0.1/images/cat-selected.png" alt="selected" class="mc-cat-selected mc-cat-selected-a" id="mc-cat-selected-gr" />				  	
-				  	<div id="mc-form-gr" class="mc-form-rounded mc-form-descbox mc-form-descbox-a" title="<?php _e("Click to select", "mc"); ?>">
+				  	<div id="mc-form-gr" class="mc-form-rounded mc-form-descbox mc-form-descbox-a">
 				  		<!-- 
 				    	<div id="mc-form-more-link-gr" class="mc-form-link"><?php _e("What is this?", "mc"); ?></div>
 				    	<div id="mc-form-less-link-gr" class="mc-form-link"><?php _e("less info", "mc"); ?></div>
 				    	-->
-				    	<div class="mc-form-descbox-header"><?php _e("Grassroots", "mc"); ?></div>
+				    	<div class="mc-form-descbox-header"><?php _e("Grassroots", "mc"); ?><input id="gr-checkbox" name="gr-checkbox" type="checkbox" value="N" onclick="clickCheckBox('gr')"></div>
 				    	<div class="mc-form-descbox-intro"><?php _e("Your initiative is driven by horizontal collective decisions", "mc"); ?></div>
 					    <div id="mc-form-more-text-gr" class="mc-form-more-text-v2">
 							<?php _e("<ul> <li>The initiative follows collective decision-making procedures for tackling most issues</li> <li>The hierarchical structure is minimal or inexistent. That is, horizontal grassroots discussions of the members have a major weight when compared with vertical instructions from the board</li> </ul>", "mc"); ?>




More information about the Movecommons-commits mailing list