let iitcm react on the dialog focused callback

This commit is contained in:
Philipp Schaefer
2013-07-02 10:53:03 +02:00
parent c3c03598b5
commit 255831f4eb
3 changed files with 19 additions and 2 deletions

View File

@ -205,6 +205,10 @@ window.dialog = function(options) {
// This dialog is now in focus
window.DIALOG_FOCUS = this;
// hint for iitc mobile that a dialog was focused
if (typeof android !== 'undefined' && android && android.dialogFocused) {
android.dialogFocused($(window.DIALOG_FOCUS).data('id'));
}
$(this).closest('.ui-dialog').find('.ui-dialog-title').removeClass('ui-dialog-title-inactive').addClass('ui-dialog-title-active');
}
}, options));