* Don't toggle the border of marked comments in the admin section

to 2px, to avoid padding. Thanks to hboeck!
This commit is contained in:
Garvin Hicking 2009-12-08 13:09:21 +00:00
parent b597076aa0
commit 9c30b3068d
2 changed files with 24 additions and 2 deletions

View File

@ -3,6 +3,9 @@
Version 1.5 ()
------------------------------------------------------------------------
* Don't toggle the border of marked comments in the admin section
to 2px, to avoid padding. Thanks to hboeck!
* Added expermiantel PDO::SQLite transport, by nth
* Disallow uploading any files with ".php." in the filename

View File

@ -287,14 +287,33 @@ function invertSelection() {
}
}
}
var origborder = '';
var origwidth = '';
function highlightComment(id, checkvalue) {
var comment = document.getElementById(id);
if (origborder == '') {
origborder = comment.style.borderColor;
if (origborder == '') {
origborder = '#FFFFFF';
}
}
if (origwidth == '') {
origwidth = comment.style.borderWidth;
if (origwidth == '' || origwidth == 0) {
origwidth = 1;
}
}
if (checkvalue) {
comment.style.borderColor = '#FF0000';
comment.style.borderWidth = 2;
comment.style.borderWidth = origwidth;
} else {
comment.style.borderColor = '';
comment.style.borderWidth = '';
comment.style.borderWidth = origwidth;
}
}
</script>