ie6 fixes, table name autoselection (fixes issue #14)

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4038
This commit is contained in:
ondrej.zara
2009-04-24 08:32:58 +00:00
parent d2debbc940
commit c0f40507ac
2 changed files with 18 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>WWW SQL Designer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="styles/style.css" media="all" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="styles/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="styles/ie7.css" /><![endif]-->
+16 -2
View File
@@ -1399,8 +1399,22 @@ SQL.TableManager.prototype.remove = function(e) {
SQL.TableManager.prototype.edit = function(e) {
this.owner.window.open(_("edittable"), this.dom.container, this.save);
this.dom.name.value = this.selected.getTitle();
this.dom.comment.value = this.selected.getComment();
var title = this.selected.getTitle();
this.dom.name.value = title;
try { /* throws in ie6 */
this.dom.comment.value = this.selected.getComment();
} catch(e) {}
/* pre-select table name */
this.dom.name.focus();
if (OZ.ie) {
try { /* throws in ie6 */
this.dom.name.select();
} catch(e) {}
} else {
this.dom.name.setSelectionRange(0, title.length);
}
}
SQL.TableManager.prototype.keys = function(e) { /* open keys dialog */