|
kupu-image-addbutton: msg#00009web.kupu.devel
Hi, I almost have my image library finished. It was quite easy, thanks to kupu's extendability. There's one tiny problem to which there must be an easy answer. A row of available images is displayed in the toolbox, each with an onClick() function - img src onClick=(). The function is one line of JavaScript that modifies kupu-image-input. User then clicks "Insert image", and the selected image is inserted. This is a working solution but I would like to improve it a bit: How can I eliminate the need to click "Insert image"? User should be able to insert the image by simply clicking on it. I need an autosubmit. In other words, I need to hook to the place that is called when user clicks "kupu-image-addbuton", but I have no idea where is this place. The idea is to create "kupu-image-addbuton_1", "kupu-image-addbuton_2" etc., and each of them calling the same function that "kupu-image-addbuton" calls. Can you help, please? -- Milos Prudek |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: link: 00009, Duncan Booth |
|---|---|
| Next by Date: | improving KupuStateButton: small proposal: 00009, yuppie |
| Previous by Thread: | linki: 00009, a a |
| Next by Thread: | improving KupuStateButton: small proposal: 00009, yuppie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |