Fixing Browse For Folder not working on Domaines-type with - in their name

This commit is contained in:
Benjamin Sonntag 2015-05-12 16:07:39 +02:00
parent 51684c2125
commit 667bc04316
2 changed files with 3 additions and 2 deletions

View File

@ -117,10 +117,11 @@ function addslashes(ch) {
/* Fontion de retour de la valeur selectionnee */
function retour() {
window.parent.document.<?php echo $caller; ?>.value = addslashes( $("#file").val() );
window.parent.jQuery('#<?php echo $caller; ?>').val( $("#file").val() );
window.parent.jQuery('#<?php echo $bid; ?>').dialog('close');
return false;
}
</script>
</head>
<body class="light" onload="popupfile();">

View File

@ -78,7 +78,7 @@ $dom->unlock();
switch ($dt['target']) {
case "DIRECTORY": ?>
<input type="text" class="int" name="t_<?php echo $dt['name']?>" id="t_<?php echo $dt['name']?>" value="<?php ehe($targval); ?>" size="28" onKeyPress="getElementById('r_<?php echo $dt['name']?>').checked=true;" />
<?php display_browser( $targval , "main.t_".$dt['name'] );
<?php display_browser( $targval , "t_".$dt['name'] );
break;
case "URL": ?>
<input type="text" class="int" name="t_<?php echo $dt['name']?>" id="t_<?php echo $dt['name']?>" value="<?php ehe( (empty($targval)?'http://':$targval) ); ?>" size="50" onKeyPress="getElementById('r_<?php echo $dt['name']?>').checked=true;" />