Mercurial > hg > extraction-interface
changeset 105:4eb62953af99 extractapp
bug fix: edittaglist tag
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 05 Aug 2016 15:49:55 +0200 |
parents | e542b161d907 |
children | 6de4932d993b |
files | views/Extractapp/EditTaglist.php |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/views/Extractapp/EditTaglist.php Fri Aug 05 13:34:55 2016 +0200 +++ b/views/Extractapp/EditTaglist.php Fri Aug 05 15:49:55 2016 +0200 @@ -64,7 +64,7 @@ console.log(".englishOnly"); - var englishAlphabet =/[a-z0-9]/g; + var englishAlphabet =/[A-Za-z0-9]/g; var key = String.fromCharCode(event.which); @@ -78,6 +78,7 @@ // -: 189 if (event.keyCode == 8 || event.keyCode == 9 || (event.keyCode >= 16 && event.keyCode <= 20) || event.keyCode == 27 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 91 || event.keyCode == 189 || englishAlphabet.test(key)) { + return true; } @@ -303,6 +304,7 @@ var elid = document.getElementById("tdId"+id).textContent; var elname = document.getElementById("tdName"+id).textContent; var eltag = document.getElementById("tdTag"+id).textContent; + eltag = eltag.toLowerCase(); if (elname == "" || eltag == "") { @@ -342,6 +344,7 @@ } }).done(function(result) { }); + } function saveTag( id) { @@ -349,6 +352,9 @@ var elid = document.getElementById("tdId"+id).textContent; var elname = document.getElementById("tdName"+id).textContent; var eltag = document.getElementById("tdTag"+id).textContent; + eltag = eltag.toLowerCase(); + + /* var elid = document.getElementById("tdId"+id).innerHTML; var elname = document.getElementById("tdName"+id).innerHTML;