mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
objects can be removed from clipboard
This commit is contained in:
parent
9a3f217e45
commit
9abbf6a1e5
|
@ -678,6 +678,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function folderNavigationBar($folder) { /* {{{ */
|
private function folderNavigationBar($folder) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$session = $this->params['session'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
if (!is_object($folder) || !$folder->isType('folder')) {
|
if (!is_object($folder) || !$folder->isType('folder')) {
|
||||||
|
@ -718,7 +719,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$menuitems['edit_folder_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_folder_notify'));
|
$menuitems['edit_folder_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_folder_notify'));
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
if($session->isOnClipboard($folder))
|
||||||
|
$menuitems['remove_from_clipboard'] = array('class'=>'removefromclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_removed_from_clipboard')], ['title', getMLText("remove_from_clipboard")]), 'label'=>getMLText("remove_from_clipboard"));
|
||||||
|
else
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
}
|
}
|
||||||
if ($accessobject->check_view_access('Indexer') && $this->params['enablefullsearch']) {
|
if ($accessobject->check_view_access('Indexer') && $this->params['enablefullsearch']) {
|
||||||
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
||||||
|
@ -741,6 +745,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
private function documentNavigationBar($document) { /* {{{ */
|
private function documentNavigationBar($document) { /* {{{ */
|
||||||
|
$session = $this->params['session'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessMode = $document->getAccessMode($this->params['user']);
|
$accessMode = $document->getAccessMode($this->params['user']);
|
||||||
|
@ -789,7 +794,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$menuitems['edit_document_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_document_notify'));
|
$menuitems['edit_document_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_document_notify'));
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
if($session->isOnClipboard($document))
|
||||||
|
$menuitems['remove_from_clipboard'] = array('class'=>'removefromclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_removed_from_clipboard')], ['title', getMLText("remove_from_clipboard")]), 'label'=>getMLText("remove_from_clipboard"));
|
||||||
|
else
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
}
|
}
|
||||||
if ($accessobject->check_view_access('TransferDocument')) {
|
if ($accessobject->check_view_access('TransferDocument')) {
|
||||||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||||
|
@ -3165,6 +3173,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
|
|
||||||
function documentListRowAction($document, $previewer, $skipcont=false, $version=0, $extracontent=array()) { /* {{{ */
|
function documentListRowAction($document, $previewer, $skipcont=false, $version=0, $extracontent=array()) { /* {{{ */
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
$session = $this->params['session'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessop = $this->params['accessobject'];
|
$accessop = $this->params['accessobject'];
|
||||||
$onepage = $this->params['onepage'];
|
$onepage = $this->params['onepage'];
|
||||||
|
@ -3194,7 +3203,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
$actions['document_access'] = $this->printAccessButton($document, true);
|
$actions['document_access'] = $this->printAccessButton($document, true);
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
if($session->isOnClipboard($document))
|
||||||
|
$actions['remove_from_clipboard'] = '<a class="removefromclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_removed_from_clipboard').'" title="'.getMLText("remove_from_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
|
else
|
||||||
|
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
}
|
}
|
||||||
if($onepage)
|
if($onepage)
|
||||||
$actions['view_document'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewDocument.php?documentid='.$docID.'" title="'.getMLText("view_document").'"><i class="fa fa-eye"></i></a>';
|
$actions['view_document'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewDocument.php?documentid='.$docID.'" title="'.getMLText("view_document").'"><i class="fa fa-eye"></i></a>';
|
||||||
|
@ -3376,6 +3388,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
function folderListRowAction($subFolder, $skipcont=false, $extracontent=array()) { /* {{{ */
|
function folderListRowAction($subFolder, $skipcont=false, $extracontent=array()) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
$session = $this->params['session'];
|
||||||
// $folder = $this->params['folder'];
|
// $folder = $this->params['folder'];
|
||||||
$showtree = $this->params['showtree'];
|
$showtree = $this->params['showtree'];
|
||||||
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
||||||
|
@ -3406,7 +3419,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
$actions['folder_access'] = $this->printAccessButton($subFolder, true);
|
$actions['folder_access'] = $this->printAccessButton($subFolder, true);
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
if($session->isOnClipboard($subFolder))
|
||||||
|
$actions['add_to_clipboard'] = '<a class="removefromclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_removed_from_clipboard').'" title="'.getMLText("remove_from_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
|
else
|
||||||
|
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
}
|
}
|
||||||
if($onepage)
|
if($onepage)
|
||||||
$actions['view_folder'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewFolder.php?folderid='.$subFolder->getID().'" title="'.getMLText("view_folder").'"><i class="fa fa-eye"></i></a>';
|
$actions['view_folder'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewFolder.php?folderid='.$subFolder->getID().'" title="'.getMLText("view_folder").'"><i class="fa fa-eye"></i></a>';
|
||||||
|
|
|
@ -407,6 +407,8 @@ $(document).ready( function() {
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: attr_msg,
|
text: attr_msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -442,6 +444,8 @@ $(document).ready( function() {
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: attr_msg,
|
text: attr_msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -753,6 +757,8 @@ function onAddClipboard(ev) { /* {{{ */
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: data.message,
|
text: data.message,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
|
|
@ -683,6 +683,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
private function folderNavigationBar($folder) { /* {{{ */
|
private function folderNavigationBar($folder) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$session = $this->params['session'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
if (!is_object($folder) || !$folder->isType('folder')) {
|
if (!is_object($folder) || !$folder->isType('folder')) {
|
||||||
|
@ -721,7 +722,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$menuitems['edit_folder_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_folder_notify'));
|
$menuitems['edit_folder_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.FolderNotify.php?folderid=". $folderID ."&showtree=". showtree(), 'label'=>getMLText('edit_folder_notify'));
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
if($session->isOnClipboard($folder))
|
||||||
|
$menuitems['remove_from_clipboard'] = array('class'=>'removefromclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_removed_from_clipboard')], ['title', getMLText("remove_from_clipboard")]), 'label'=>getMLText("remove_from_clipboard"));
|
||||||
|
else
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'F'.$folder->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
}
|
}
|
||||||
if ($this->params['user']->isAdmin() && $this->params['enablefullsearch']) {
|
if ($this->params['user']->isAdmin() && $this->params['enablefullsearch']) {
|
||||||
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
$menuitems['index_folder'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Indexer.php?folderid=". $folderID."&showtree=".showtree(), 'label'=>getMLText('index_folder'));
|
||||||
|
@ -742,6 +746,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
private function documentNavigationBar($document) { /* {{{ */
|
private function documentNavigationBar($document) { /* {{{ */
|
||||||
|
$session = $this->params['session'];
|
||||||
$accessobject = $this->params['accessobject'];
|
$accessobject = $this->params['accessobject'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessMode = $document->getAccessMode($this->params['user']);
|
$accessMode = $document->getAccessMode($this->params['user']);
|
||||||
|
@ -788,7 +793,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$menuitems['edit_document_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_document_notify'));
|
$menuitems['edit_document_notify'] = array('link'=>$this->params['settings']->_httpRoot."out/out.DocumentNotify". $docid, 'label'=>getMLText('edit_document_notify'));
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
if($session->isOnClipboard($document))
|
||||||
|
$menuitems['remove_from_clipboard'] = array('class'=>'removefromclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_removed_from_clipboard')], ['title', getMLText("remove_from_clipboard")]), 'label'=>getMLText("remove_from_clipboard"));
|
||||||
|
else
|
||||||
|
$menuitems['add_to_clipboard'] = array('class'=>'addtoclipboard', 'attributes'=>array(['rel', 'D'.$document->getId()], ['msg', getMLText('splash_added_to_clipboard')], ['title', getMLText("add_to_clipboard")]), 'label'=>getMLText("add_to_clipboard"));
|
||||||
}
|
}
|
||||||
if ($accessobject->check_view_access('TransferDocument')) {
|
if ($accessobject->check_view_access('TransferDocument')) {
|
||||||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||||
|
@ -3215,6 +3223,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
|
|
||||||
function documentListRowAction($document, $previewer, $skipcont=false, $version=0, $extracontent=array()) { /* {{{ */
|
function documentListRowAction($document, $previewer, $skipcont=false, $version=0, $extracontent=array()) { /* {{{ */
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
$session = $this->params['session'];
|
||||||
$enableClipboard = $this->params['enableclipboard'];
|
$enableClipboard = $this->params['enableclipboard'];
|
||||||
$accessop = $this->params['accessobject'];
|
$accessop = $this->params['accessobject'];
|
||||||
$onepage = $this->params['onepage'];
|
$onepage = $this->params['onepage'];
|
||||||
|
@ -3244,7 +3253,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
$actions['document_access'] = $this->printAccessButton($document, true);
|
$actions['document_access'] = $this->printAccessButton($document, true);
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
if($session->isOnClipboard($document))
|
||||||
|
$actions['remove_from_clipboard'] = '<a class="removefromclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_removed_from_clipboard').'" title="'.getMLText("remove_from_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
|
else
|
||||||
|
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="D'.$docID.'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
}
|
}
|
||||||
if($onepage)
|
if($onepage)
|
||||||
$actions['view_document'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewDocument.php?documentid='.$docID.'" title="'.getMLText("view_document").'"><i class="fa fa-eye"></i></a>';
|
$actions['view_document'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewDocument.php?documentid='.$docID.'" title="'.getMLText("view_document").'"><i class="fa fa-eye"></i></a>';
|
||||||
|
@ -3478,6 +3490,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
function folderListRowAction($subFolder, $skipcont=false, $extracontent=array()) { /* {{{ */
|
function folderListRowAction($subFolder, $skipcont=false, $extracontent=array()) { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
$session = $this->params['session'];
|
||||||
// $folder = $this->params['folder'];
|
// $folder = $this->params['folder'];
|
||||||
$showtree = $this->params['showtree'];
|
$showtree = $this->params['showtree'];
|
||||||
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
$enableRecursiveCount = $this->params['enableRecursiveCount'];
|
||||||
|
@ -3508,7 +3521,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
$actions['folder_access'] = $this->printAccessButton($subFolder, true);
|
$actions['folder_access'] = $this->printAccessButton($subFolder, true);
|
||||||
}
|
}
|
||||||
if($enableClipboard) {
|
if($enableClipboard) {
|
||||||
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
if($session->isOnClipboard($subFolder))
|
||||||
|
$actions['add_to_clipboard'] = '<a class="removefromclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_removed_from_clipboard').'" title="'.getMLText("remove_from_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
|
else
|
||||||
|
$actions['add_to_clipboard'] = '<a class="addtoclipboard" rel="F'.$subFolder->getID().'" msg="'.getMLText('splash_added_to_clipboard').'" title="'.getMLText("add_to_clipboard").'"><i class="fa fa-copy"></i></a>';
|
||||||
}
|
}
|
||||||
if($onepage)
|
if($onepage)
|
||||||
$actions['view_folder'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewFolder.php?folderid='.$subFolder->getID().'" title="'.getMLText("view_folder").'"><i class="fa fa-eye"></i></a>';
|
$actions['view_folder'] = '<a href="'.$this->params['settings']->_httpRoot.'out/out.ViewFolder.php?folderid='.$subFolder->getID().'" title="'.getMLText("view_folder").'"><i class="fa fa-eye"></i></a>';
|
||||||
|
|
|
@ -455,6 +455,8 @@ $(document).ready( function() {
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: attr_msg,
|
text: attr_msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -490,6 +492,8 @@ $(document).ready( function() {
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: attr_msg,
|
text: attr_msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
@ -801,6 +805,8 @@ function onAddClipboard(ev) { /* {{{ */
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
$("#main-clipboard").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=mainclipboard')
|
||||||
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
$("#menu-clipboard div").html('Loading').load(seeddms_webroot+'out/out.Clipboard.php?action=menuclipboard')
|
||||||
|
$("div.ajax[data-action='navigation']").trigger('update', {});
|
||||||
|
$("div.ajax[data-action='folderList']").trigger('update', {});
|
||||||
noty({
|
noty({
|
||||||
text: data.message,
|
text: data.message,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user