[[ I'm happy to work with a consultant to answer this and other
questions, as per my previous email. However, Thomas suggested I send
some questions to the dev list, so I'm doing that. ]]
I see when you define a button from a plugin, you can give it a command:
$this->add_button(array(
'command' => 'plugin.markasjunk',
'imagepas' => $skin_path.'/junk_pas.png',
'imageact' => $skin_path.'/junk_act.png',
'title' => 'markasjunk.buttontitle'), 'toolbar');
}
And register a PHP callback to handle that command:
$this->register_action('plugin.markasjunk', array($this,
'request_action'));
I want to define some buttons that execute javascript in the browser,
instead of creating HTTP request to the server to run a PHP callback.
Is there a way that I can register a command name (for example
'plugin.move_to_next_message') along with javascript code to be run
for that command? I could always modify program/js/app.js to add a
new command, but if there is a hook to do this, I'd prefer to do that.
Thanks!
David Harris
DRH Internet Inc.
972-572-0900
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
[[ I'm happy to work with a consultant to answer this and other
questions, as per my previous email. However, Thomas suggested I send
some questions to the dev list, so I'm doing that. ]]
I want to add some buttons to the message listing toolbar and the
message view toolbar, but I want them to be conditional based on the
mailbox.
I've been looking at some existing plugins for guidance.
I see in the "markasjunk" plugin:
function init()
{
...
$rcmail = rcmail::get_instance();
if ($rcmail->action == '' || $rcmail->action == 'show') {
...
$this->add_button(array(
'command' => 'plugin.markasjunk',
'imagepas' => $skin_path.'/junk_pas.png',
'imageact' => $skin_path.'/junk_act.png',
'title' => 'markasjunk.buttontitle'), 'toolbar');
}
}
My problem is that the current mailbox does not appear to be
available at this step. And if I did conditionally print this button
based on mailbox, when the user clicks to a different mailbox
roundcube displays the new data without a page reload, so the button
would need to be hidden/shown with JavaScript.
My guess is that I should always print the button, but then modify
some JavaScript code to update the display CSS property based on what
mailbox we are in. Is there a standard hook for doing this? Or a
location where other code does this which would be a logical place to
add? I see that buttons are grayed based on if a message is selected
or not.
Thanks,
David Harris
DRH Internet Inc.
972-572-0900
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi
Updated galician translation
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/V7/uxMs5ECs/labels.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Attached.
regards,
Ossama
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/PX/9Y8URcKl/roundcube-ar.zip
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
http://lists.roundcube.net/mail-archive/users/2010-07/0000021.html
I'm not sure all of you are reading users list. THREAD preformance issue
has been fixed. Still on big mailboxes it can took a few seconds for
handling threads. BTW, my proposition to make displaying messages (in
'show' action) faster is to create page navigation (#countcontrols) in
separate (ajax) request after message.html page is loaded. Any thoughts?
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/
Dear all,
Please find the hungarian translation attached. Only one line was missing.
Regards,
ikkhares
On Mon, May 31, 2010 at 5:43 PM, ikkhares <ikkhares(a)gmail.com> wrote:
> Dear all,
>>
>> Indeed it was missing. I reviewed this change and also made a minor change
>> myself.
>> Hopefully the final translation for 0.4, please commit!
>>
>> labels.inc
>>
>> -$labels['listorder'] = 'Rendezésmód';
>> +$labels['listorder'] = 'Rendezés sorrendje';
>>
>> Regards,
>> ikkhares
>>
>>
>> On Mon, May 31, 2010 at 10:18 AM, pete <pete(a)teamlupus.hu> wrote:
>>
>>> Hi,
>>>
>>> i saw the Hungarian translation misses one message, i translated and
>>> attached it. Please apply.
>>>
>>> On Fri, 9 Apr 2010 17:29:24 +0200, Thomas Bruederli <roundcube(a)gmail.com
>>> >
>>> wrote:
>>> > Also all translators are kindly requested to check the status of their
>>> > localization files at http://translator.roundcube.net/ and submit the
>>> > update files to this mailing list as usual.
>>>
>>>
>>> thanks,
>>> --
>>> Péter
>>>
>>>
>>>
>>>
>>> --- 8< --- detachments --- 8< ---
>>> The following attachments have been detached and are available for
>>> viewing.
>>> http://detached.gigo.com/rc/QP/WBNbOTOO/messages.inc
>>> Only click these links if you trust the sender, as well as this message.
>>> --- 8< --- detachments --- 8< ---
>>>
>>>
>>> _______________________________________________
>>> List info: http://lists.roundcube.net/dev/
>>>
>>>
>>
>
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/rm/QTngWfFQ/labels.zip
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
New labels.inc attached.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Wq/9fHTchma/labels.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/