mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-06 01:50:57 +00:00
add method printInlineEditOriginalName()
This commit is contained in:
parent
2e38c8fb92
commit
f20f4d2ae2
|
@ -2567,6 +2567,22 @@ $(function() {
|
|||
echo $text;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Wrap text in inline editing tags
|
||||
*
|
||||
* @param string text
|
||||
*/
|
||||
function printInlineEditOriginalName($text, $object){ /* {{{ */
|
||||
if(!empty($this->params['settings']->_inlineEditing)) {
|
||||
echo "<span class=\"editorigname editable\" contenteditable=\"true\"";
|
||||
if($object->isType('documentcontent'))
|
||||
echo " data-content=\"".$object->getId()."\" data-formtoken=\"".createFormKey('setoriginalname')."\"";
|
||||
echo ">".$text;
|
||||
echo "</span>\n";
|
||||
} else
|
||||
echo $text;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Print button with link for deleting a document
|
||||
*
|
||||
|
|
|
@ -2593,6 +2593,22 @@ $(function() {
|
|||
echo $text;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Wrap text in inline editing tags
|
||||
*
|
||||
* @param string text
|
||||
*/
|
||||
function printInlineEditOriginalName($text, $object){ /* {{{ */
|
||||
if(!empty($this->params['settings']->_inlineEditing)) {
|
||||
echo "<span class=\"editorigname editable\" contenteditable=\"true\"";
|
||||
if($object->isType('documentcontent'))
|
||||
echo " data-content=\"".$object->getId()."\" data-formtoken=\"".createFormKey('setoriginalname')."\"";
|
||||
echo ">".$text;
|
||||
echo "</span>\n";
|
||||
} else
|
||||
echo $text;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Print button with link for deleting a document
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user