made keyboard help correctly printable (still not final)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-20 02:41:29 +04:00
parent d9ae1bdd0e
commit 39d8c59ad1
3 changed files with 23 additions and 3 deletions

View File

@ -147,6 +147,12 @@ button:hover {
-ms-user-select: none;
user-select: none;
}
/* XXX this is a stub for printing help/docs... */
@media print {
.viewer {
display: none;
}
}
/****************************************************** Ribbon set ***/
.ribbon-set {
position: absolute;

View File

@ -224,6 +224,14 @@ button:hover {
.user-select(none);
}
/* XXX this is a stub for printing help/docs... */
@media print {
.viewer {
display: none;
}
}
/****************************************************** Ribbon set ***/

View File

@ -511,6 +511,9 @@ var FIELD_TYPES = {
//
// see FIELD_TYPES for supported field types.
//
// NOTE: if btn is set to false explicitly then no button will be
// rendered in the form dialog.
//
// XXX add form testing...
// XXX add undefined field handling/reporting...
// XXX revise...
@ -561,8 +564,10 @@ function formDialog(root, message, config, btn, cls){
}
// add button...
if(btn !== false){
var button = $('<button class="accept">'+btn+'</button>')
form.append(button)
}
var overlay = showInOverlay(root, form)
.addClass('dialog ' + cls)
@ -601,7 +606,8 @@ function formDialog(root, message, config, btn, cls){
var _alert = alert
function alert(){
var message = Array.apply(null, arguments).join(' ')
return formDialog(null, String(message), {}, 'OK', 'alert')
//return formDialog(null, String(message), {}, 'OK', 'alert')
return formDialog(null, String(message), {}, false, 'alert')
}