Hi,

I tried to capture a jquery-ui event: dialogopen but failed. My script is 
as below. 


// ==UserScript==
// ....
// @require 
https://code.jquery.com/jquery-2.2.4.min.js#sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=
// ==/UserScript==

(function () {
'use strict';

$(document).ready(function () {

$(document).on("dialogopen", function (e, u) {
console.log('dialog open');
console.log(e);
// do something here
});

});
})();

Can anyone help me out? 

I tried to change the event to "click" and it worked fine. And I also tried 
to run this from console and "dialogopen" event can be captured well.
Do I miss any configuration like permission or anything else?

Thanks
-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to greasemonkey-users+unsubscr...@googlegroups.com.
To post to this group, send email to greasemonkey-users@googlegroups.com.
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to