openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1e88bfbc5107ff6c59ec48dd5ebcc99687828a61
parent d6b295f8f25fce9c6bf701506ee394a33ee286ab
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 18 Oct 2012 06:53:24 +0200

Inhalte von Ordnern sind anklickbar.

Diffstat:
action/FolderAction.class.php | 9+++++----
themes/default/include/html/link.inc.php | 4++--
themes/default/templates/folder/edit.tpl.src.xml | 10++++++----
3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/action/FolderAction.class.php b/action/FolderAction.class.php @@ -1114,10 +1114,11 @@ class FolderAction extends ObjectAction if ( $o->hasRight(ACL_READ) ) { - $list[$id]['id'] = 'obj'.$id; - $list[$id]['name'] = Text::maxLaenge( 30,$o->name ); - $list[$id]['filename'] = Text::maxLaenge( 20,$o->filename ); - $list[$id]['desc'] = Text::maxLaenge( 30,$o->desc ); + $list[$id]['objectid'] = $id; + $list[$id]['id' ] = 'obj'.$id; + $list[$id]['name' ] = $o->name; + $list[$id]['filename'] = $o->filename; + $list[$id]['desc' ] = $o->desc; if ( $list[$id]['desc'] == '' ) $list[$id]['desc'] = lang('NO_DESCRIPTION_AVAILABLE'); $list[$id]['desc'] = 'ID '.$id.' - '.$list[$id]['desc']; diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -50,4 +50,4 @@ // if ( substr($tmp_url,0,10) != 'javascript' ) // $tmp_url = "javascript:loadViewByName('".$attr_target."','".$tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'')."'); return false;"; -?><a target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> name="<?php echo $attr_name ?>"<?php }else{ ?> href="javascript:void(0);" <?php } ?> class="<?php echo $attr_class ?>" data-id="<?php echo $attr_id ?>" data-type="<?php echo $attr_type ?>" data-action="<?php echo $attr_action ?>" data-method="<?php echo $attr_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">- \ No newline at end of file +?><a target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> data-name="<?php echo $attr_name ?> name="<?php echo $attr_name ?>"<?php }else{ ?> href="javascript:void(0);" <?php } ?> class="<?php echo $attr_class ?>" data-id="<?php echo $attr_id ?>" data-type="<?php echo $attr_type ?>" data-action="<?php echo $attr_action ?>" data-method="<?php echo $attr_subaction ?>" data-data="<?php echo $tmp_data ?>" <?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">+ \ No newline at end of file diff --git a/themes/default/templates/folder/edit.tpl.src.xml b/themes/default/templates/folder/edit.tpl.src.xml @@ -23,11 +23,13 @@ <text raw="_"></text> </if> </column> - <column> + <column class="clickable"> <label for="var:id"> - <image type="var:icon"></image> - <text var="name"></text> - <text raw="_"></text> + <link type="open" name="var:name" action="var:type" id="var:objectid"> + <image type="var:icon"></image> + <text var="name" maxlength="40"></text> + <text raw="_"></text> + </link> </label> </column> </row>