Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Support for Alert Dialogs #6

Open
obfuscode opened this issue Mar 19, 2015 · 2 comments
Open

Support for Alert Dialogs #6

obfuscode opened this issue Mar 19, 2015 · 2 comments

Comments

@obfuscode
Copy link

Would it be possible to add support for alert dialogs? I use your app to display a project management tool and any alert dialogs that open do not display and prevent me from using the tool for whatever function caused the alert.

If there's no way to allow them, is there anyway to catch them and maybe display them in a different manner?

@reneroth
Copy link

reneroth commented Jun 5, 2015

You could just override the alert() javascript function to re-route the output to your notification function of choice. I use this example with jQuery Growl:

window.alert = function() {
  $.growl({
      title: "Alert",
      message: arguments[0]
  });
};

@qvacua
Copy link
Owner

qvacua commented Jul 4, 2015

Probably this would be possible, but currently, unfortunately, I don't have that much time. However, it's a very good idea. Maybe some other user of qdesktop has got some time to implement this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants