mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Remove edit action:
- Let the "open" action finds out about the correct handler based on file's mime type
This commit is contained in:
parent
1c97cf7c0e
commit
abf5ed6cb5
@ -131,13 +131,6 @@ class filemanager_ui
|
|||||||
'onExecute' => 'javaScript:app.filemanager.open',
|
'onExecute' => 'javaScript:app.filemanager.open',
|
||||||
'default' => true
|
'default' => true
|
||||||
),
|
),
|
||||||
'modify' => array(
|
|
||||||
'caption' => lang('Edit'),
|
|
||||||
'group' => $group,
|
|
||||||
'icon' => 'edit',
|
|
||||||
'onExecute' => 'javaScript:app.filemanager.open',
|
|
||||||
'enabled' => 'javaScript:app.filemanager.isEditable',
|
|
||||||
),
|
|
||||||
'new' => array(
|
'new' => array(
|
||||||
'caption' => 'New',
|
'caption' => 'New',
|
||||||
'group' => $group,
|
'group' => $group,
|
||||||
|
@ -300,7 +300,7 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -771,7 +771,7 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
{
|
{
|
||||||
mime_dom.click();
|
mime_dom.click();
|
||||||
}
|
}
|
||||||
else if (_action.id == 'modify' && mime && data.data.mime.match(mime.mime_odf_regex))
|
else if (mime && this.isEditable(_action, _senders))
|
||||||
{
|
{
|
||||||
egw.open_link(egw.link('/index.php', {
|
egw.open_link(egw.link('/index.php', {
|
||||||
menuaction: 'filemanager.filemanager_ui.editor',
|
menuaction: 'filemanager.filemanager_ui.editor',
|
||||||
@ -1161,7 +1161,7 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* share-link callback
|
* share-link callback
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -1171,10 +1171,10 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
|
|
||||||
var copy_link_to_clipboard = null;
|
var copy_link_to_clipboard = null;
|
||||||
|
|
||||||
var copy_link_to_clipboard = function(evt){
|
var copy_link_to_clipboard = function(evt){
|
||||||
var $target = jQuery(evt.target);
|
var $target = jQuery(evt.target);
|
||||||
$target.select();
|
$target.select();
|
||||||
|
|
||||||
console.log("share_link click");
|
console.log("share_link click");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -1192,9 +1192,9 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
jQuery("body").on("click", "[name=share_link]", copy_link_to_clipboard);
|
jQuery("body").on("click", "[name=share_link]", copy_link_to_clipboard);
|
||||||
|
|
||||||
var dialog = et2_createWidget("dialog",{
|
var dialog = et2_createWidget("dialog",{
|
||||||
callback: function( button_id, value){
|
callback: function( button_id, value){
|
||||||
jQuery("body").off("click", "[name=share_link]", copy_link_to_clipboard);
|
jQuery("body").off("click", "[name=share_link]", copy_link_to_clipboard);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
title: "Share",
|
title: "Share",
|
||||||
template: _data.template,
|
template: _data.template,
|
||||||
|
Loading…
Reference in New Issue
Block a user