Changeset 1135410
- Timestamp:
- 04/15/2015 11:31:23 AM (11 years ago)
- Location:
- genoo/trunk
- Files:
-
- 4 edited
-
Genoo.php (modified) (1 diff)
-
GenooInit.php (modified) (1 diff)
-
assets/GenooEditPost.js (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
genoo/trunk/Genoo.php
r1121144 r1135410 6 6 Author URI: http://www.genoo.com/ 7 7 Author Email: info@genoo.com 8 Version: 2.6 8 Version: 2.6.5 9 9 License: GPLv2 10 10 Text Domain: genoo -
genoo/trunk/GenooInit.php
r1121144 r1135410 52 52 define('GENOO_CACHE', GENOO_ROOT . 'cache' . DIRECTORY_SEPARATOR); 53 53 define('GENOO_DEBUG', get_option('genooDebug')); 54 define('GENOO_REFRESH', sha1('genoo-refresh-javascript- now-please'));54 define('GENOO_REFRESH', sha1('genoo-refresh-javascript-without-popup')); 55 55 // start the engine last file to require, rest is auto 56 56 // custom auto loader, PSR-0 Standard -
genoo/trunk/assets/GenooEditPost.js
r1121144 r1135410 245 245 // Validate 246 246 // TODO: rewrite to normal js, instead of jQuery 247 /* 247 248 var form = jQuery("form[name='post']"); 249 var publish = jQuery(form).find("#publish"); 248 250 jQuery(form).find("#publish").click(function(e){ 249 251 // prevent default 250 e.preventDefault();252 if(e.preventDefault){ e.preventDefault(); } 251 253 // found 252 254 var found = false; 253 255 // Do we have dynamic cta box? 254 if(Document.elementExists('repeatable_genoo-dynamic-cta') ){256 if(Document.elementExists('repeatable_genoo-dynamic-cta') && jQuery('#enable_cta_for_this_post_repeat').is(':checked')){ 255 257 // Go throu selected options 256 258 jQuery('#repeatable_genoo-dynamic-cta select').each(function(){ … … 262 264 if(r == true){ 263 265 jQuery("#ajax-loading").show(); 264 jQuery(form).submit();266 publish.click(); 265 267 } else { 266 268 jQuery("#publish").removeClass().addClass("button-primary"); … … 274 276 if(found == false){ 275 277 jQuery("#ajax-loading").show(); 276 jQuery(form).submit();278 publish.click(); 277 279 } 278 280 } else { 279 281 jQuery("#ajax-loading").show(); 280 jQuery(form).submit();282 publish.click(); 281 283 } 282 284 }); 285 */ 283 286 }); -
genoo/trunk/readme.txt
r1121144 r1135410 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 Stable tag: 2.6 8 Stable tag: 2.6.5 9 9 10 10 Combine the flexibility of WordPress with the power of Genoo and experience amazing results!
Note: See TracChangeset
for help on using the changeset viewer.