diff options
author | thomascube <thomas@roundcube.net> | 2009-07-24 09:44:03 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-07-24 09:44:03 +0000 |
commit | 29f977858ebabb8243e1ef5d2c869279ac1e170e (patch) | |
tree | 9ea2bc3db4dde5c5f37cb3903d0eda838fe7ffac /program/include/rcube_template.php | |
parent | 826ceecab857d72d7cf8b2a347537f4f9b4bdd15 (diff) |
Register button event handlers in javascript and save some html code
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-x | program/include/rcube_template.php | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index ecb5a8942..599f30cdf 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -840,9 +840,9 @@ class rcube_template extends rcube_html_page else if (in_array($attrib['command'], $a_static_commands)) { $attrib['href'] = rcmail_url($attrib['command']); } - else if ($attrib['command'] == 'permaurl' && !empty($this->env['permaurl'])) { - $attrib['href'] = $this->env['permaurl']; - } + else if ($attrib['command'] == 'permaurl' && !empty($this->env['permaurl'])) { + $attrib['href'] = $this->env['permaurl']; + } } // overwrite attributes @@ -857,35 +857,6 @@ class rcube_template extends rcube_html_page $attrib['prop'] ); } - if ($command && $attrib['imageover']) { - $attrib['onmouseover'] = sprintf( - "return %s.button_over('%s','%s')", - JS_OBJECT_NAME, - $command, - $attrib['id'] - ); - $attrib['onmouseout'] = sprintf( - "return %s.button_out('%s','%s')", - JS_OBJECT_NAME, - $command, - $attrib['id'] - ); - } - - if ($command && $attrib['imagesel']) { - $attrib['onmousedown'] = sprintf( - "return %s.button_sel('%s','%s')", - JS_OBJECT_NAME, - $command, - $attrib['id'] - ); - $attrib['onmouseup'] = sprintf( - "return %s.button_out('%s','%s')", - JS_OBJECT_NAME, - $command, - $attrib['id'] - ); - } $out = ''; |