-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automagic enable/disable of length attribute based on selected ty…
…pe in table creation / alter screens. Patch from John Jawed for Google SoC, with some cleanup and modifications from me.
- Loading branch information
xzilla
committed
Aug 18, 2006
1 parent
f58a041
commit 10ff95e
Showing
4 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var predefined_lengths = null; | ||
var sizesLength = false; | ||
|
||
function checkLengths(sValue,idx) { | ||
if(predefined_lengths) { | ||
if(sizesLength==false) { | ||
sizesLength = predefined_lengths.length; | ||
} | ||
for(var i=0;i<sizesLength;i++) { | ||
if(sValue.toString().toUpperCase()==predefined_lengths[i].toString().toUpperCase()) { | ||
document.getElementById("lengths"+idx).value=''; | ||
document.getElementById("lengths"+idx).disabled='on'; | ||
return; | ||
} | ||
} | ||
document.getElementById("lengths"+idx).disabled=''; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters