Quote from: onepack at Apr 23, 2010, 12:05 PM
mm_hideTemplates(’0’, ’!1’) rule and other hide template ruses don’t work since the recent upgrade. Did other people run into this?
Yeah... I’ve got the same error :/
EDIT:
Ok here is my solution (patch) for this problem.
I don’t know why, but for some reasons Chrome, Opera, IE8 don’t apply .hide() for <option> elements. It’s already a well known issue.
So replace this code in managermanager/functions/templates.inc.php
foreach ($tplIds as $tpl) {
$output .= 'if ($j("select#template").val() != '.$tpl. ') { '. "\n";
$output .= '$j("select#template option[value='.$tpl.']").hide();' . "\n";
$output .= '}' . "\n";
}
with something like this:
foreach ($tplIds as $tpl) {
$output .= 'if ($j("select#template").val() != '.$tpl. ') { '. "\n";
$output .= '$j("select#template option[value='.$tpl.']").remove();' . "\n";
$output .= '$j("select#template optgroup:not(:has(*))").remove();' . "\n";
$output .= '}' . "\n";
}
And btw. there is no <optgroup> tag in /manager/actions/mutate_content.dynamic.php before line 585 so it could determine additional problems.
There should be something like this:
<optgroup label="blank">
<option value="0">(blank)</option>
Quote from: flughund at Apr 11, 2010, 05:09 PM
sorry for that, works perfect. update overwrited demo_mm-chunk... now just have this alert left:
do you know whats wrong here? I’m using the mg_backend_manager...
Same error here, but only in Google Chrome. It’s something with <iframe></iframe>. When you modify - in the mg_backend_manager.php - <iframe> into anything else that error will not occur. But of course it’s not the solution but only indication where the problem lies.
EDIT:
For avoid displaying alert you can just comment 412 line in managermanager/mm.inc.php:
// alert("ManagerManager: An error has occurred: " + e.name + " - " + e.message);
But of course it’s not the solution. This will only cause that you won’t get this (and any other) error displayed.
It’s really interesting, because despite this error everything works just fine.