This commit is contained in:
Dan Poltawski 2013-10-21 11:24:51 +08:00
commit 2d0316d60d
3 changed files with 15 additions and 15 deletions

View file

@ -62,7 +62,9 @@ class data_field_url extends data_field_base {
// Just the URL field
$str .= '<label class="accesshide" for="' . $fieldid . '">'. $this->field->name .'</label>';
$str .= '<input type="text" name="field_'.$this->field->id.'_0" id="'.$fieldid.'" value="'.s($url).'" size="60" />';
$str .= '<button id="filepicker-button-'.$options->client_id.'" style="display:none">'.$straddlink.'</button>';
if (count($options->repositories) > 0) {
$str .= '<button id="filepicker-button-'.$options->client_id.'" style="display:none">'.$straddlink.'</button>';
}
}
// print out file picker