Skip to content

Commit

Permalink
Dev: using quick add in labels, the first row always add a bad code (…
Browse files Browse the repository at this point in the history
…LS01). I just removed the senseless condition.
  • Loading branch information
louis committed Aug 14, 2015
1 parent 87e4a16 commit 6ae330f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/admin/labels.js
Expand Up @@ -133,14 +133,9 @@ function quickaddfunction(){
k++;
}

if (index!=0 || (!lsreplace && $("#tabs div[id^='newedit']:not(:last) tbody>tr").length > 0)){
event = {};
event.target = $(".btnaddanswer:last");
var retcode = add_label(event);
}
else{
var retcode = add_label();
}
event = {};
event.target = $(".btnaddanswer:last");
var retcode = add_label(event);

if (typeof(code)!="undefined") {
$("#code_"+retcode).val(code);
Expand Down

0 comments on commit 6ae330f

Please sign in to comment.