jQuery(document).on('subform-row-add', function(event, row){
jQuery('.timepicker').timepicker();
// jform_tsch__tsch1__trln
/
jform_tsch__tsch1__lfld
var lcID = 'jform_tsch__' + jQuery(row).data('group') + '__trln';
var flID = 'jform_tsch__' + jQuery(row).data('group') + '__lfld';
var loccode = jQuery('#jform_tsch__' + jQuery(row).data('group') + '__trln').val();
var init = false;
jQuery('#'+ lcID).trigger("liszt:updated");
console.log('lcID: ' + lcID + ' - data group: ' + jQuery(row).data('group') + ' - loccode: ' + loccode);
getLocationFields(loccode, flID, init);
});
jQuery('select[id^=jform_tsch__tsch][id$=__trln]').change(function () {
//jform_tsch__tsch0__trln
//jform_tsch__tsch1__trln
var lcid = jQuery(this).attr('id'); //DK, IS
var target = lcid.split('__');
//field ID, #
var flID = target[0]+'__'+target[1] + '__lfld';
//var fsel = jQuery('#'+subID).val();
var loccode = jQuery(this).val();
var init = false;
getLocationFields(loccode, flID, init);
});
jform_tsch__tsch0__trln
', then it is (geLocationFields) executed. jform_tsch__tsch0__trln
', nothing is happening=executed. jform_tsch__tsch0__trln
', the event trigger is executed.jQuery('#'+ lcID).trigger("liszt:updated");
But that makes no difference.
Anybody an idea how to get the new row field in '
jQuery(document).on('subform-row-add', function(event, row){
' working with the event selector, without first to have saving the details page??
Thanks in advance,
BR,
Nico
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/61d30bb5-8940-48a5-8e8c-dd602852064ao%40googlegroups.com.
jQuery(document).on('subform-row-add', function(event, row){
jQuery('.timepicker').timepicker();
// jform_tsch__tsch1__lfld
var lcID = 'jform_tsch__' + jQuery(row).data('group') + '__trln';
var flID = 'jform_tsch__' + jQuery(row).data('group') + '__lfld';
var loccode = jQuery('#jform_tsch__' + jQuery(row).data('group') + '__trln').val();
//var loccode = jQuery('#' + lcID).val();
var init = false;
jQuery('#'+ lcID + " option:first").attr('selected','selected');
//jQuery('#'+ lcID).trigger("liszt:updated");
//console.log('lcID: ' + lcID + ' - data group: ' + jQuery(row).data('group') + ' - loccode: ' + loccode);
getLocationFields(loccode, flID, init);
// MODIFICATION: EVENT SELECTOR COPIED AND PUT IN THIS EVENT SELECTOR, 'FUNCTION IN A FUNCTION'!!!???
jQuery('select[id^=jform_tsch__tsch][id$=__trln]').bind('change', function () {
//jQuery('select[id^=jform_tsch__tsch][id$=__trln]').change(function () {
//jform_tsch__tsch0__trln
//jform_tsch__tsch1__trln
var lcid = jQuery(this).attr('id'); //DK, IS
var target = lcid.split('__');
//field ID, #
var flID = target[0]+'__'+target[1] + '__lfld';
//var fsel = jQuery('#'+subID).val();
var loccode = jQuery(this).val();
var init = false;
getLocationFields(loccode, flID, init);
});
});
'getLocationFields(loccode, flID, init);', otherwise the other dropdown is not populated at the initial step.
But I'm amazed and confused how this is working. This would never come up to me.
Thanks Mark.
BR.
Nico
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/61d30bb5-8940-48a5-8e8c-dd602852064ao%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/ccf47e80-17e0-4f00-a96c-ff620648070co%40googlegroups.com.