Hi,
sorry, I have no idea about that

> On 15. Mar 2018, at 10:32, Alexis HAUSER <[email protected]> 
> wrote:
> 
> Thank you, I've checked in 'Loader::Customer::CommonJS###000-Framework' and 
> it seems it's already in. (autocomplete.js)
> 
> Actually what I would like to do is : add autocompletion for email adresses 
> in a custom field in customer interface (when posting or replying to a 
> ticket).
> Do you have any idea how it would be possible to do that ?
> 
> From what I can see, in the rendered page, it looks like :
> 
> Core.Config.AddConfig({"Action":"AgentTicketCompose","Autocomplete":{"CustomerSearch":{"AutoCompleteActive":"1","ButtonText":"Search
>  
> Customer","MaxResultsDisplayed":"20","MinQueryLength":"2","QueryDelay":"100"},"Default":{"AutoCompleteActive":"1"...........
> 
> Best regards
> Alexis
> 
> 
> 
> 
> De: "Juan Manuel Clavero Almirón" <[email protected]>
> À: "dev" <[email protected]>
> Envoyé: Jeudi 15 Mars 2018 10:15:27
> Objet: Re: [dev] Linking javascript with templates
> 
> Hi,
> 
> you have to declare it in the config
> If it's a library that should be available in the hole customer interface, 
> then you should declare it in the 
> 'Loader::Customer::CommonJS###000-Framework' config entry. If it's only for a 
> module, then you should do it in it's ModuleRegistration config entry
> 
> Kind regards,
> Juan
> 
> On 15. Mar 2018, at 09:57, Alexis HAUSER <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> Hi,
> 
> I would like to add some javascript from Agent interface to Customer 
> interface.
> 
> In css, you only have to use the class names of HTML templates to choose what 
> you do.
> 
> But how do you tell OTRS, "I want to load this javascript file for this 
> page"...
> I don't see the same class name from OTRS templates in javascript files...
> 
> Any clue ?
> 
> 
> Best regards
> Alexis
> 
> _______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/ <http://otrs.org/>
> Archive: http://lists.otrs.org/pipermail/dev 
> <http://lists.otrs.org/pipermail/dev>
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev 
> <http://lists.otrs.org/mailman/listinfo/dev>
> 
> 
> _______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
> _______________________________________________
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

Reply via email to