minhtam72
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Plugin: qTranslate] Cannot add/update multilanguage text widget!Thank you, cbarnett!
Forum: Plugins
In reply to: [Plugin: qTranslate] Cannot add/update multilanguage text widget!Hi anhede, qtranslate-extended.php is included in the plugin “qTranslate extension” , so you won’t find it in the folder of “qTranslate”.
Forum: Plugins
In reply to: [Plugin: qTranslate] Cannot add/update multilanguage text widget!Sorry, I took it wrong, the problem is not with qTranslate but with qTranslate extension. WordPress 3.5 does not use .live(‘click’… to handle the Save button click event, it use .bind(‘click.widgets-toggle’,… instead, that makes the old function of qTranslate extension processed after the old content has been submitted. Here is my fix:
Edit qtranslate-extended.php:
Replace line 202 to 210 with these lines:jQuery(document.body).bind('click.widgets-toggle', function(e){ var target = jQuery(e.target); if ( target.hasClass('widget-control-save') ) { var form = target.parents('form:first'); if(form.hasClass('multilanguage-form')){ prepareMultilanguageData(form); setTimeout(function(){ generateMultilanguageElements(form.parent()); },2500); } e.preventDefault(); } });
Viewing 3 replies - 1 through 3 (of 3 total)