close dialogs onBackPressed (fixes #363)

This commit is contained in:
Philipp Schaefer
2013-06-11 01:21:36 +02:00
parent 28e3ee075a
commit b3a42783fa
3 changed files with 29 additions and 0 deletions

View File

@ -55,6 +55,11 @@ window.dialog = function(options) {
var jqID = '#' + id;
var html = '';
// hint for iitc mobile that a dialog was opened
if (typeof android !== 'undefined' && android && android.dialogOpened) {
android.dialogOpened(id);
}
// Convert text to HTML if necessary
if(options.text) {
html = window.convertTextToTableMagic(options.text);