Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Toggle Not working

Toggle Not working 09 Jan 2017 23:57 #14930

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
I have found that when I am dragging a BOOLEAN onto a grid view, and setting option to TOGGLEABLE, its just not working.

The code is certainly being generated in the compnent, but the 'grid' icon is not actually clickable

Here is a sample of code generated in the view
<?php echo JDom::_('html.grid.bool', array(
						'commandAcl' => array('core.edit.own', 'core.edit'),
						'ctrl' => '(tablename)',
						'dataKey' => 'featured',
						'dataObject' => $row,
						'num' => $i,
						'taskYes' => 'toggle_featured',
						'viewType' => 'icon'
					));?>

I have proven this in a brand new project called TEST, build tried for 3.0.10 and 3.1
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Toggle Not working 15 Jan 2017 14:46 #14938

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
Been through the code, there does not seem to be any code in the new builds for any toggle functionlaity that I can see
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Toggle Not working 16 Jan 2017 22:29 #14946

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.

It was missing togglable => true in the JDom parameters.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL
Time to create page: 0.064 seconds

Get Started