Files: Support display/title (instead of uid) in sharing form
This commit is contained in:
parent
22bfc61fbf
commit
2a1d9bb6b8
2 changed files with 7 additions and 4 deletions
|
@ -2929,7 +2929,10 @@ function kolab_files_ui()
|
||||||
.on('click', function() { file_api.sharing_delete(post.folder, $(this).closest('tr'), post.mode); });
|
.on('click', function() { file_api.sharing_delete(post.folder, $(this).closest('tr'), post.mode); });
|
||||||
|
|
||||||
if (form_info.list_column) {
|
if (form_info.list_column) {
|
||||||
row.append($('<td>').append($('<span class="name">').text(post[form_info.list_column])));
|
row.append($('<td>').append($('<span class="name">')
|
||||||
|
.text(response.result.display || post[form_info.list_column])
|
||||||
|
.attr('title', response.result.title))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$.each(form_info.form || [], function(i, v) {
|
$.each(form_info.form || [], function(i, v) {
|
||||||
|
@ -2945,7 +2948,7 @@ function kolab_files_ui()
|
||||||
content.append(opts).val(post[i]);
|
content.append(opts).val(post[i]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
content = $('<span class="name">').text(post[i]);
|
content = $('<span class="name">').text(response.result.display || post[i]).attr('title', response.result.title);
|
||||||
hidden.push($('<input>').attr({type: 'hidden', name: i, value: post[i] || ''}));
|
hidden.push($('<input>').attr({type: 'hidden', name: i, value: post[i] || ''}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -450,7 +450,7 @@ class kolab_files_engine
|
||||||
foreach ((array) $info['rights'] as $entry) {
|
foreach ((array) $info['rights'] as $entry) {
|
||||||
if ($entry['mode'] == $mode) {
|
if ($entry['mode'] == $mode) {
|
||||||
if (!empty($tab['list_column'])) {
|
if (!empty($tab['list_column'])) {
|
||||||
$table->add(null, html::span('name', rcube::Q($entry[$tab['list_column']])));
|
$table->add(null, html::span(array('title' => $entry['title'], 'class' => 'name'), rcube::Q($entry[$tab['list_column']])));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($tab['form'] as $index => $field) {
|
foreach ($tab['form'] as $index => $field) {
|
||||||
|
@ -458,7 +458,7 @@ class kolab_files_engine
|
||||||
$table->add(null, $fields[$index]->show($entry[$index]));
|
$table->add(null, $fields[$index]->show($entry[$index]));
|
||||||
}
|
}
|
||||||
else if ($fields[$index] instanceof html_inputfield) {
|
else if ($fields[$index] instanceof html_inputfield) {
|
||||||
$table->add(null, html::span('name', rcube::Q($entry[$index])));
|
$table->add(null, html::span(array('title' => $entry['title'], 'class' => 'name'), rcube::Q($entry[$index])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue