Commit e8cdc79d authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fixe bug if no change url plugin

parent 020be3ac
......@@ -512,7 +512,11 @@ class tx_nG6_pi1 extends tslib_pibase {
$(".tx-nG6-pi1-imglink").click(function() {
jQuery.url.setUrl($(this).attr("href"));
$("#img_dialog").dialog("option", "title", "nG6 - '.$this->internal['currentRow']['name'].'");
if (jQuery.url.param("file")) {
$("#img_dialog").html(\'<img src="\'+jQuery.url.param("file")+\'"/>\').dialog("open");
} else {
$("#img_dialog").html(\'<img src="\'+$(this).attr("href")+\'"/>\').dialog("open");
}
return false;
});
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment