From f89f03cd6ae4a1b3f98e39c2e01d9e40f8a286b4 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 12 Sep 2008 11:12:05 +0000 Subject: Refactor drag & drop functionality. Don't rely on browser events anymore (#1484453) --- program/steps/addressbook/func.inc | 48 +++++++------------------------------- 1 file changed, 9 insertions(+), 39 deletions(-) (limited to 'program/steps') diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 43d117430..98cf29f10 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -58,31 +58,15 @@ function rcmail_directory_list($attrib) if (!$attrib['id']) $attrib['id'] = 'rcmdirectorylist'; + $out = ''; $local_id = '0'; $current = get_input_value('_source', RCUBE_INPUT_GPC); - $line_templ = '
  • %s'. - "
  • \n"; + $line_templ = html::tag('li', array('id' => 'rcmli%s', 'class' => '%s'), + html::a(array('href' => '%s', 'onclick' => "return ".JS_OBJECT_NAME.".command('list','%s',this)"), '%s')); - // allow the following attributes to be added to the '; - $OUTPUT->add_gui_object('folderlist', $attrib['id']); - return $out; + return html::tag('ul', $attrib, $out, html::$common_attrib); } -- cgit v1.2.3