simplemodal close function - simplemodal

I love the osx version of the simple modal. However, I would like to do some data editing in the opened modal box.
Now when the user clicked outside of the modal, it'll close. So if the user accidentally clicked the outside of the modal, their information will be lost.
How do I disable closing when click outside of the modal? thanks!

Go to Line 28 of the file "osx.js" that is included in Simple Modal OSX Style Dialog. Change overlayClose: true to overlayClose: false.

Related

shortcut for hiding parameter info popup intellij idea

Ctrl+p seems to be only showing the popup but doesn't toggle it. There is no action to hide it AFAIK.
I have already set delay of 10 secs for showing parameter info popup. But still it seems idea lacks this feature.
I am using ideavim and Ctrl+[ doesn't hide the popup. I need to press escape twice and again i/a to actually hide the popup.
Is there any shortcut for hiding documentation popup?
I have filled the issue for IdeaVim plugin: VIM-2160. Please vote/follow.

Open modal popup in another modal popup

I want to open modal popup within another popup.
Is it possible in Yii2.0?
I have one modal popup window, there is one link inside, after clicking on that link i want to open one small popup without closing parent window.
<?= Html::a('Click here to skip it', ['customer/loststicker']) ?>
The more correct formulation should be "Is it possible with Bootstrap 3?" since Yii2 is integrated with Bootstrap 3 and provide widgets for most of js components including Modal.
At first check official Bootstrap 3 documentation about modal:
Overlapping modals not supported
Be sure not to open a modal while another is still visible. Showing more than one modal at a time requires custom code.
So you need custom solution to implement this.
I think there are two main possible variations:
Close first modal, open second; when closing second, open first again. If the size of the second window is the same as first or more than first, visually you can't tell that first window is closed (don't sure about the animations though).
First modal stays opened when second appears.
If you do some research here you find few similar questions:
Bootstrap: Open Another Modal in Modal
Bootstrap 3 - open modal from another modal
Bootstrap modal: close current, open new
So for your case i think using Stackable will be more suitable.

Uploadify - file select dialog goes behind the popup window

I am using uploadify in a child window. that is if i click on a image it will open a new window using javascript.. inside the child popup window, i am having the uploadify.
everything works fine. but when clicking Browser Files flash button, the file select dialog goes behind the child window. anybody please help to focus the file select dialog to the current popup window.
Do you have a link so we can test this? It seems like a problem on how your computer is rendering dialogs.
I believe the browser can't control whether the dialog will be created on top of all windows or behind all windows.

Closing frontmost window in Cocoa in an app without a menu bar

I am building a StatusBar App in Cocoa, therefore I have no menu. Having no menu implies not having a "File > Close" menu item, which normally listens to the shortcut "Command + W".
From my StatusBar App the user may open a window to change the preferences and that's where I'm running into problems: The user can only close the window by pressing the red dot with the mouse. However, like alle applications I want to support the "Command + W" shortcut as well.
At the moment I see two possibilities to solve this issue:
Place an invisible button on the window which listens to the shortcut.
Add an application-wide listener for the shortcut and contact the window manually.
Both solutions feel like a misuse of the system. The first solution can lead to unexpected behaviour (the window closes if the user hits the invisible button by chance) and the second solution will still result in a beep, since the window does not know that it handles such a shortcut.
Is there an elegant way to solve this problem? Since the view should know what to do, a solution with just Interface Builder would be perfect. If there is no elegant way, is there a way to enhance the solutions mentioned?
Thanks in advance!
If you put a File > Close menu item in your MainMenu nib, the shortcut will work, even though the menu isn't visible.
If you choose to implement an app-wide listener for the shortcut instead, you can get rid of the beep by returning nil from the block, so that the original event doesn't get passed on.

AIR modal screen

I am developing an AIR application where I need to display a Modal Window.
The screen should fill the entire desktop including the Task Bar.
If the user wants to exit the screen, he should press Windows+D option or activate Task Manager.
Can any one post some sample code?
To get rid of taskbar, switch to fullscreen mode with
stage.displayState = StageDisplayState.FULL_SCREEN;
User always can switch to another window with Alt-Tab (on Windows), AIR cannot "lock" screen to prevent that.
Try the example here
http://flex4fun.com/2010/12/01/flex4-popupmanager-example-change-modal-color-and-click-modal-close-popup/
PopUpManager.createPopUp(this, TitleWindow, true)
last argument makes the popup "modal".
http://docs.huihoo.com/flex/4/mx/managers/PopUpManager.html#createPopUp()