modal-dialog

catching Angular Bootstrap UI $uibModal closed event after the modal was closed

不想你离开。 提交于 2019-12-22 03:18:27
问题 I'm opening a modal window using $uibModal.open from another controller, and need to be notified when the modal window was closed completely (and not during closing...) so I'll be able to run a function. The code that opens the modal is as follows: var modalInstance = $uibModal.open({ templateUrl: "myModalContent.html", controller: "termModalCtrl", windowClass: 'app-modal-window', resolve: { 'params': function () { return id } } }); I saw some suggested solutions to use: modalInstance.result

Multiple PrimeFaces dialogs on one page

我的未来我决定 提交于 2019-12-22 01:39:55
问题 I am facing problems with dialog windows validation. On home.xhtml I have a tabview with 3 nested dataTables and CRUD buttons (see screenshot). Every button is supposed to call a dialog window with a form to add/edit entity. But whenever I fail to validate some field in any form - all other forms are displayed too: I would like to validate and display only one dialog at a time and keep it displayed untill user presses "Cancel" button or inputs valid values and presses submit button. No other

Twitter Bootstrap: How to close modal dialog?

放肆的年华 提交于 2019-12-22 01:27:34
问题 I'm trying to implement modal loading dialog with Twitter's bootstrap. My current attemp is: $(document).ready(function () { $('#loading_dialog') .ajaxStart(function () { $(this).modal('show'); }) .ajaxStop(function () { $(this).modal('hide'); }); }); Problem is that the dialog won't close. 回答1: I didn't test it but the issue could depend on the context of the ajaxStart/Stop anonymous function. Can you try this? var loading_dialog = $('#loading_dialog'); loading_dialog .ajaxStart(function ()

jquery 1.4.2 - jquery UI dialog, close when outside click (not modal)

本秂侑毒 提交于 2019-12-22 01:17:40
问题 Using UI dialog. jquery 1.4.2 I have my code to close a dialog when clicked outside. This doesn't work for me. However, if I up the version on a local development, it works fine. The issue is, that I can't up the jquery version for this part of the site. Thoughts on how to achieve clicking outside a non-modal dialog to close? // Close Pop-in If the user clicks anywhere else on the page jQuery('body') .bind( 'click', function(e){ if( jQuery('.detailsPopup').dialog('isOpen') && !jQuery(e.target

modal pop up window to fit within browser view if resize height

允我心安 提交于 2019-12-21 23:41:42
问题 I've went to this tutorial to do a modal pop up window, and it seems pretty nice for what I need to do. However, I was wondering if someone can help me figure out what I need to calculate to change the dialog box so it'll follow whenever you resize the browser. This tutorial is good because if you resize the browser (width-wise), the box will follow and go into the middle. But if it is height-wise, it wont. Tutorial : Here I'm thinking it has to do with these codes : // get the screen height

JDialog: How to disable the ESC key of my Modal dialog?

房东的猫 提交于 2019-12-21 22:34:18
问题 So there's a frame (main app). From here, I open a Modal JDialog and start a background thread working whilst displaying progress (log entries) in a table. This process is critical and should not be stoppable/hideable/closeable, thus why the dialog's close button is de-activated until everything's finished. However, the user can at any time tap the ESC key and my onCanceled() is called, thus calling this.dispose(). EDIT: I inherited this project and oversaw how deep the rabbit hole of

Polymer 1.0: How to design a modern authentication UX in Polymer if modals must go outside <paper-drawer-panel>?

前提是你 提交于 2019-12-21 21:28:44
问题 Our Challenges: It seems to me The Polymer 1.0 developer community faces the following challenges right now: We have no user auth UX example to follow. This Stackoverflow question requests a user authentication UX example. And describes why it's needed. This Github issue also documents multiple user requests for such a user auth UX example. And there has also been lots of anecdotal chatter on the Polymer Slack Site about this issue as well. Modals don't currently work inside <paper-drawer

Jquery Form submit with bootstrap modal confirmation

北战南征 提交于 2019-12-21 21:19:48
问题 I have a form (Bootstarp3) with jquery form validation plugin. Now I want to submit the form after validating the form and when I submit the form, I want modal to confirm the form submit. How can I do that? Do I need to put the modal within submit handler? $("#dischargeform").validate({ submitHandle : { ??? } }). 回答1: Your question is unclear; when I submit the form, I want modal to confirm the form submit. If you want to show the modal after the form submit then you need to submit the form

Capture onClose event for Spreadsheet App Modal Dialog in Google Apps Script

ⅰ亾dé卋堺 提交于 2019-12-21 20:22:19
问题 I want to do something when the Modal Dialog (opened using showModalDialog()) is closed from the Spreadsheet App. However I cannot find the reference of such event, in the API documents provided by Google. I found how to capture this event in a Alert Box, and by using this piece of code I can capture how the user closed the Alert Box, but I cannot use this in a Modal Dialog or a Modeless Dialog. Is there a way to do this? Please kindly answer if you do. 回答1: This is not possible. And you

Showing a modal dialog and getting results

有些话、适合烂在心里 提交于 2019-12-21 20:21:47
问题 I have a static WindowService class which helps me to create new windows and modal dialogs. So far, what I have is this: /// <summary> /// Opens a new window of type <paramref name="newWindowType"/> and closes the <paramref name="oldWindow"/> /// </summary> /// <param name="oldWindow">The window which should be closed (Usually the current open window)</param> /// <param name="newWindowType">The type of the new window to open</param> public static void ShowNewWindow(Window oldWindow, Type