Hi all,

I got tired of the reload everytime I click one of the channel checkboxes, I
simply added this the following javascript check:

if(!event.ctrlKey) this.form.submit();

Not the best solution, but it should work on all recent browser I think.

I can now click multiple checkboxes in quick succession holding the Ctrl
key. Then I click one more without the Ctrl key to trigger the refresh.

in details.php:
1112c1112
<                       print "<td align=left><input type='checkbox'
name='$channel' value='$channel' onClick='this.form.submit();'
checked>$channel &nbsp</td>\n";
---
>                       print "<td align=left><input type='checkbox'
name='$channel' value='$channel' onClick='if(!event.ctrlKey)
this.form.submit();' checked>$channel &nbsp</td>\n";
1115c1115
<                       print "<td align=left><input type='checkbox'
name='$channel' value='$channel' onClick='this.form.submit();'>$channel
&nbsp</td>\n";
---
>                       print "<td align=left><input type='checkbox'
name='$channel' value='$channel' onClick='if(!event.ctrlKey)
this.form.submit();'>$channel &nbsp</td>\n";

--
Jannes Faber
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to