Hi Samat.

Can you create a branch and push your changes to it?

As for remodal ... you don't need to externalize it to get things working. 
Externalization is a runtime optimization that you can do later.

Looking at your changes, it looks like you are planning to use remodal via 
add-item.js ? add-item.js is built out of the "war" directory (see 
war/gulpfile.js for the bunble build instruction). So, the first thing you 
need to do is add a dependency on remodal, which you do by running "npm 
install --save remodal". After doing that, you should be able to "var 
remodal = require('remodal')" in the ad-item JavaScript code to get the 
remodal instance and do whatever it does.

Also .... not sure I'd create the big .jelly file as you've done it. Maybe 
just outline how you are expecting this to work first and we can then 
figure out how best to implement it.

On Sunday, May 29, 2016 at 9:24:40 AM UTC+1, Samat Davletshin wrote:
>
> Hello,
> In previous post I showed that I could make a popup dialog window on home 
> page to create a new job. 
> However, I did it in a fast and dirty way and now I want to make it 
> properly.
>
> I am sorry if those are too simple questions. However, I would appreciate 
> if you could at least link me to where I can read about how to do it.
>
> Currently I see 3 issues and I would like to have a hint on how to fix 
> them.
>
> 1. How do I add an external js, css library to js-modules 
> <https://github.com/tfennelly/jenkins-js-modules> or to js-libs 
> <https://github.com/jenkinsci/js-libs> so that I can require it on home 
> page?
>
> 2. For some reason, when I try to include my jelly file by <st:include 
> page="myjelly.jelly" /> it is not included. The myjelly file is in the same 
> folder as the file (sidepanel.jelly) where I try to include it. If I just 
> insert the same jelly in sidepanel file between <st:include> files it works.
>
> 3. Labels like ${%ItemName.label} are not replaced by the corresponding 
> string as you can see on GIF.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/d5da10d5-c4a0-4032-a2a1-777d16bd07cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to