2018-03-08, 00:50
I am trying to add the Auto-update button in AddonInformation dialog but not as a common radio button. I want to use a toggle button so to have text look button like all the others that Bello is using in information dialogs....
So, the code that i am using is this...
The problem is that the SendClick action it's not working here nor the Control.GetLabel(13).index(1) to get the <label2/> of the button.
I'm using this way in several places in Bello and is working fine except from the AddonInformation dialog.
I've also try these but none of them is working too...
Is this a bug on Leia nightlies or am i doing something wrong here?... or is there another way to achieve want i want?
Cheers
Nessus
So, the code that i am using is this...
...and i have the radiobutton id="13" hidden in the end of the file.php:<control type="togglebutton" id="130">
<description>Auto-Update</description>
<label>$LOCALIZE[21340]: $INFO[Control.GetLabel(13).index(1)]</label>
<altlabel>$LOCALIZE[21340]: $INFO[Control.GetLabel(13).index(1)]</altlabel>
<include>TopMenuButton</include>
<onclick>SendClick(13)</onclick>
</control>
The problem is that the SendClick action it's not working here nor the Control.GetLabel(13).index(1) to get the <label2/> of the button.
I'm using this way in several places in Bello and is working fine except from the AddonInformation dialog.
I've also try these but none of them is working too...
php:<onclick>SendClick(146,13)</onclick>
<onclick>SendClick(addoninformation,13)</onclick>
Is this a bug on Leia nightlies or am i doing something wrong here?... or is there another way to achieve want i want?
Cheers
Nessus