Implement new feature for vfs-select widget to accept extra buttons action. Additionally, add extra "copy" and "move" actions to link-to vfs dialog.

This commit is contained in:
Hadi Nategh
2018-03-13 17:43:21 +01:00
parent 52db405e47
commit eb1eed5b8d
3 changed files with 41 additions and 7 deletions

View File

@ -185,6 +185,8 @@ var et2_link_to = (function(){ "use strict"; return et2_inputWidget.extend(
button_caption: '',
readonly: this.options.readonly,
dialog_title: egw.lang('Link'),
extra_buttons:[{text: egw.lang("copy"), id:"copy", image: "copy"},
{text: egw.lang("move"), id:"move", image: "move"}],
onchange: function() {
var values = true;
// If entry not yet saved, store for linking on server