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:
+2
-1
@@ -7,7 +7,8 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
|
||||||
<head>
|
<head>
|
||||||
<title>WWW SQL Designer</title>
|
<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" />
|
<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 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]-->
|
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="styles/ie7.css" /><![endif]-->
|
||||||
|
|||||||
+16
-2
@@ -1399,8 +1399,22 @@ SQL.TableManager.prototype.remove = function(e) {
|
|||||||
|
|
||||||
SQL.TableManager.prototype.edit = function(e) {
|
SQL.TableManager.prototype.edit = function(e) {
|
||||||
this.owner.window.open(_("edittable"), this.dom.container, this.save);
|
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 */
|
SQL.TableManager.prototype.keys = function(e) { /* open keys dialog */
|
||||||
|
|||||||
Reference in New Issue
Block a user