? Success

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
8 Feb 2015

When a radio button group changes its state, the "change" trigger is not called.

Steps to test:

  1. Go to Articles => Options
  2. Open the Browser console (or Firebug etc.) and type in the following:
jQuery('#jform_show_title0').on('change', function() { alert('Title shown'); });
jQuery('#jform_show_title1').on('change', function() { alert('Title hidden'); });
  1. Toggle the "Show title" option => nothing happens
  2. Apply patch
  3. Try again
avatar bembelimen bembelimen - open - 8 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2015
Labels Added: ?
avatar matrikular
matrikular - comment - 8 Feb 2015

I have the feeling, that this wasn't the only place where a trigger was missing, but for now ...
@test ... works as described / expected

avatar chmst
chmst - comment - 8 Feb 2015

@test success

avatar zero-24 zero-24 - change - 8 Feb 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - alter_testresult - 8 Feb 2015 - chmst: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 8 Feb 2015 - matrikular: Tested successfully
avatar zero-24
zero-24 - comment - 8 Feb 2015

Moving to RTC based on the tests by @matrikular and @chmst Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6017.
avatar zero-24 zero-24 - change - 8 Feb 2015
Easy No Yes
avatar zero-24 zero-24 - change - 8 Feb 2015
Category Administration JavaScript
avatar roland-d
roland-d - comment - 10 Feb 2015

@bembelimen The code is fine but what problem does it solve? Is something broken? Since this change is very specific to the isis template, what is the advantage?

avatar bembelimen
bembelimen - comment - 10 Feb 2015

Depends, what problems you have while using radio buttons in the backend ;)

First of all it brings back the default handling for jQuery, see this small fiddle für default radio buttons: http://jsfiddle.net/e1bcoj9h/ => radio buttons triggers by default a "change" event when selected.
If you want to use this short code for the radio buttons in the Joomla! backend, it will not work.

I wanted to show different info texts depending in the chosen/seletec radio button. With default radio buttons it would work without problems (=> fiddle) with the backend button not.

And why in the Isis template? Because the radio button converter is a script in the Isis template, so I have to fix it there...

avatar brianteeman brianteeman - change - 10 Feb 2015
Labels Added: ?
avatar dgt41
dgt41 - comment - 11 Feb 2015

@bembelimen I think the same goes for checked as well. In #5325 I had to do it manually jQuery(this).is(':checked') instead of the jQuery shortcut jQuery(this)).prop( "checked", true )

avatar roland-d
roland-d - comment - 14 Feb 2015

@bembelimen Do you want to include the suggestion made by @dgt41 or do that in a separate pull request?

avatar dgt41
dgt41 - comment - 14 Feb 2015

@roland-d I guess you can commit this one and I’ll make another PR for checked

avatar roland-d
roland-d - comment - 14 Feb 2015

Thanks @dgt41

avatar roland-d roland-d - change - 14 Feb 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-02-14 19:17:26
avatar roland-d roland-d - close - 14 Feb 2015
avatar roland-d roland-d - reference | - 14 Feb 15
avatar roland-d roland-d - merge - 14 Feb 2015
avatar roland-d roland-d - close - 14 Feb 2015
avatar zero-24 zero-24 - close - 14 Feb 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment