Changeset 16984 for schedule/function
- Timestamp:
- 07/25/13 13:33:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/function/SplitDelete.php
r16983 r16984 19 19 20 20 function addRow(table){ 21 $(this).prepend("tableID"); 22 var targetView = table; 21 var targetView = table; 23 22 // CREATE ELEMENT 24 23 var newtr = document.createElement("tr"); … … 56 55 input_data.setAttribute("type","button"), 57 56 input_data.setAttribute("value","[ + ]"), 58 input_data.onclick = function(){ return addRow( table); }57 input_data.onclick = function(){ return addRow(newtr); } 59 58 ); 60 59 … … 101 100 //newtr.appendChild(newtd_c6); 102 101 103 targetView.appendChild(newtr);102 $(targetView).after(newtr); 104 103 105 104 } … … 189 188 input_data.setAttribute("type","button"), 190 189 input_data.setAttribute("value","[ + ]"), 191 input_data.onclick = function(){ return addRow(newt able); }190 input_data.onclick = function(){ return addRow(newtr); } 192 191 ); 193 192 var newtd_c3 = document.createElement("td");
Note:
See TracChangeset
for help on using the changeset viewer.