1
0
Fork 0
forked from 0x2620/oxjs

add icon to application error dialog

This commit is contained in:
rlx 2011-08-17 11:39:33 +00:00
commit 31149d7ecc
5 changed files with 82 additions and 29 deletions

View file

@ -152,8 +152,8 @@ Ox.Request = function(options) {
})
],
content: $iframe,
width: 800,
height: 400
width: 768,
height: 384
})
.open(),
iframe = $iframe[0].contentDocument || $iframe[0].contentWindow.document;
@ -214,10 +214,20 @@ Ox.Request = function(options) {
}
})
],
content: 'Sorry, we have encountered an application error while handling your request. To help us find out what went wrong, you may want to report this error to an administrator. Otherwise, please try again later.',
content: Ox.Element()
.append(
$('<img>')
.attr({src: Ox.UI.PATH + 'png/icon128.png'})
.css({position: 'absolute', left: '16px', top: '16px', width: '64px', height: '64px'})
)
.append(
Ox.Element()
.css({position: 'absolute', left: '96px', top: '16px', width: '256px'})
.html('Sorry, we have encountered an application error while handling your request. To help us find out what went wrong, you may want to report this error to an administrator. Otherwise, please try again later.')
),
height: 192,
keys: {enter: 'close', escape: 'close'},
width: 400,
height: 200
width: 368
})
.open();
// fixme: change this to Send / Don't Send