11
Cuidiu
Re: Notifications Checkbox
  • 2006/10/4 4:25

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Yes!! Thank you, thank you, Bandit!!

[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

12
astronaute
Re: Notifications Checkbox
  • 2006/10/11 18:29

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Your Fix works only for "check All" checkbox, not for "check All per module" checkbox :)

13
astronaute
Re: Notifications Checkbox
  • 2006/10/11 18:53

  • astronaute

  • Just popping in

  • Posts: 12

  • Since: 2006/8/23


Ok FINAL fix is this one :

system_notification_list.html

replace :
[
color=FF0000]<input name="allbox" id="allbox" onclick="xoopsCheckGroup('notificationlist', 'allbox', 'del_mod[]');" type="checkbox" value="<{$lang_checkall}>" />[/color]
by :
[
color=009900]<input name="allbox" id="allbox" onclick="xoopsCheckAll('notificationlist', 'allbox');" type="checkbox" value="<{$lang_checkall}>" />[/color]


replace :
[
color=FF0000]<input name="del_mod[<{$module.id}>]" id="del_mod[]" onclick="xoopsCheckGroup('notificationlist', 'del_mod[<{$module.id}>]', 'del_not[<{$module.id}>][]');" type="checkbox" value="<{$module.id}>" />[/color]
by :
[
color=009900]<input name="del_mod_<{$module.id}>" id="del_mod_<{$module.id}>" onclick="xoopsCheckGroup('notificationlist', 'del_mod_<{$module.id}>', 'del_not_<{$module.id}>__');" type="checkbox" value="<{$module.id}>" />[/color]


replace :
[
color=FF0000]<input type="checkbox" name="del_not[<{$module.id}>[]" id="del_not[<{$module.id}>][]" value="<{$notification.id}>" />[/color]
by :
[
color=009900]<input type="checkbox" name="del_not_<{$module.id}>__" id="del_not_<{$module.id}>__" value="<{$notification.id}>" />[/color]


bug : using square brackets [] in "id" and "name" selectors is not valid.

Enjoy

Login

Who's Online

384 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 384


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits