[ 
http://jira.magnolia-cms.com/browse/MGNLGROOVY-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Federico Grilli updated MGNLGROOVY-5:
-------------------------------------

    Fix Version/s: 2.0
                       (was: 1.1)

Without a proper button or submit element it becomes insanely complicated to 
disable multiple running of the script. Tried to remove onclick attr while 
running and restore after it but does not work. Tried adding a global boolean 
variable called 'running' to the MgnlGroovy.js object which becomes true 
slightly before ajax call and false in the callback functions 'onError' and 
'onSuccess' but seems that the false value is never restored. In sum, I give up 
for this version.

> Disable 'Run' button in script dialog when script is running
> ------------------------------------------------------------
>
>                 Key: MGNLGROOVY-5
>                 URL: http://jira.magnolia-cms.com/browse/MGNLGROOVY-5
>             Project: Magnolia Groovy Module
>          Issue Type: Improvement
>          Components: tree/dialog
>    Affects Versions: 1.0
>            Reporter: Federico Grilli
>            Assignee: Federico Grilli
>            Priority: Minor
>             Fix For: 2.0
>
>
> We need to disable the run button when a script is already running, to 
> prevent the user to inadvertently or on purpose submit multiple requests to 
> the server. I quickly tried to implement this but the problem is that I can't 
> assign an id to the button element in DOM via config (is that a bug?). 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to