[+] Helper form WIP

This commit is contained in:
Kevin Granger committed 2013-07-16 19:23:46 +02:00
1 parent 66f64c1baa
commit 02921dc9d0
20 files changed
+1188 -4750

No files matched your search

+3 -3
View File
@@ -1019,8 +1019,8 @@ product_tabs['Pack'] = new function(){
var lineDisplay = curPackItemQty+ 'x ' +curPackItemName;
var divContent = $('#divPackItems').html();
divContent += lineDisplay;
divContent += '<span class="delPackItem" name="' + curPackItemId + '" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
divContent += '<li><button class="btn btn-default delPackItem" name="' + curPackItemId + '" ><i class="icon-trash"></i></button>'+
lineDisplay+'</li>';
// QTYxID-QTYxID
// @todo : it should be better to create input for each items and each qty
@@ -1071,7 +1071,7 @@ product_tabs['Pack'] = new function(){
{
input.value += inputCut[i] + '-';
name.value += nameCut[i] + '¤';
div.innerHTML += nameCut[i] + ' <span class="delPackItem" name="' + inputQty[1] + '" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
div.innerHTML += nameCut[i] + '<li><button class="btn btn-default delPackItem" name="' + inputQty[1] + '"><i class="icon-trash"></i></button></li>';
}
}