Add to Menu

javascript Question

1 year 5 months ago #65409

Robert Stark's Avatar Robert Stark

Hi Peter,

With FLEXIcontent we have the ability to add our own .js to the backend form.

So - we can set the language based on content-type and category:

if (window.location.href.indexOf("&typeid=23&maincat=48") > -1) {


$("select#jform_language").val("en-GB");
$('select#jform_language').val("en-GB").change();

}


Now - I want to extend this to set the language for addthis - so its not "all".

I can set the "#sbox-window" - but is there anyway to trigger something on the iframe?
if ($("#jform_language").val() === "en-GB") {
	$('#sbox-window').addClass('en');	
	}

Here's my question in full:
joomla.stackexchange.com/questions/18436...1#comment23638_18436

1 year 5 months ago #65410

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

It should now take over the language selected in the content item...

1 year 5 months ago #65414

Robert Stark's Avatar Robert Stark

Thanks Peter - I can confirm its working.

This will save me and my clients a lot of time.

1 year 5 months ago #65418

Peter van Westen's Avatar Peter van Westen Admin

Ok, great :)
This will be included in the next release.