Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 4, 2012
2 parents 1ca44aa + dcb36b6 commit aed0c9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/admin/labels.js
Expand Up @@ -73,7 +73,8 @@ $(document).ready(function(){
$("tbody>tr",$("#tabs>form>div:first")).each(function(trindex,trelement){

var tr_code = $(trelement).attr('id');
tr_code=tr_code.substr(3);
tr_code=tr_code.split('_');// first is row, second langage and last the row number
tr_code=tr_code[2];
dataToSend['codelist'].push(tr_code);
dataToSend[tr_code] = {
code: $("#code_"+tr_code).val(),
Expand Down Expand Up @@ -270,7 +271,7 @@ function createNewLabelTR(alternate,first){
x = "<tr ";
if (alternate)
x = x + "class= 'highlight' ";
x = x + "style = 'white-space: nowrap;' id='row###next###'>";
x = x + "style = 'white-space: nowrap;' id='row_###lang###_###next###'>";

if (!first)
x = x + "<td>###codeval###</td><td>###assessmentval###</td>";
Expand Down

0 comments on commit aed0c9e

Please sign in to comment.