[pLog-svn] r5920 - plog/trunk/js/ui
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Sep 8 03:37:43 EDT 2007
Author: oscar
Date: 2007-09-08 03:37:43 -0400 (Sat, 08 Sep 2007)
New Revision: 5920
Modified:
plog/trunk/js/ui/ui.js
Log:
Minor usability improvement: focus the text field in the ok-cancel pop-up rather than the 'ok' button so that users don't need to unnecessarily use the mouse for that.
Modified: plog/trunk/js/ui/ui.js
===================================================================
--- plog/trunk/js/ui/ui.js 2007-09-07 22:08:28 UTC (rev 5919)
+++ plog/trunk/js/ui/ui.js 2007-09-08 07:37:43 UTC (rev 5920)
@@ -218,7 +218,7 @@
underlay:"shadow",
modal:true,
buttons : [ { text:tr("cancel"), handler:this.handleCancel },
- { text:tr("ok"), handler:this.handleOk, isDefault:true } ]
+ { text:tr("ok"), handler:this.handleOk } ]
});
if( props != undefined ) {
@@ -298,6 +298,8 @@
{
var p = new Lifetype.UI.Prompt.OkCancelPrompt( txt, props );
p.show();
+ var dlgPromptText = Lifetype.Dom.$( 'dlgPromptText' );
+ dlgPromptText.focus();
}
/**
More information about the pLog-svn
mailing list