I'm writing a web-item plugin which triggers a dialog. the web-item is connected to a webwork action.
The pugin creates an Issue and would usually redirect to the new Issue. At first I didn't have a dialog and it worked perfectly. Now that I implemented the dialog it redirects to the new Issue INSIDE the dialog. How can I tell my plugin to close the dialog instead of showing the site inside it?
seriously I'm still desperate. I can't even find a Javascriptmethod that closes a dialog.
For your actual question, can't you grab hold of the 'submit', or whatever equivalent button your populating your UI with, using JQuery and on that event close the dialog?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that should be possible, shouldn't it?
can you tell me how I exit the dialog using a button? I don't exactly have much experience with Javascript and HTML. Also is it possible to trigger the dialog closing event when pressing enter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dialog.hide();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not answering your direct question but when I do dialogs they are all javascript but the dialog is populated via soy templates. The dialog itself grabs the data and communicates to the server via REST.
It's then trivial to save out the info via POSTs to a REST interface and close the dialog in success via javascript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.