From b110549972fe2170a00c40c33fe9e9937b7ba342 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 9 Aug 2016 18:14:32 +0200 Subject: [PATCH] add command clearclipboard --- op/op.Ajax.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 16ef2650e..c792469a0 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -204,6 +204,14 @@ switch($command) { } break; /* }}} */ + case 'clearclipboard': /* {{{ */ + if($user) { + $session->clearClipboard(); + header('Content-Type: application/json'); + echo json_encode(array('success'=>true, 'message'=>getMLText('splash_cleared_clipboard'))); + } + break; /* }}} */ + case 'movefolder': /* {{{ */ if($user) { if(!checkFormKey('movefolder', 'GET')) {