Changeset 243
- Timestamp:
- Mar 8, 2010, 1:41:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/eventDescription/showMyProtocolFilled.gsp
r242 r243 105 105 input.setAttribute('name','parameterStringValue__new'+id+'__protocol__'+rowId); 106 106 var tr=document.createElement('tr'); 107 tr.id='rowparameterStringValue__new'+id+'__protocol__'+rowId; 107 108 tr.insertCell(-1).appendChild(input); 108 109 tbody.appendChild(tr); … … 110 111 button.type='button'; 111 112 button.value='delete'; 112 button. onclick=function(){jQuery(tr).remove()};113 button.setAttribute('onclick','removeById(\''+tr.id+'\');'); 113 114 tr.insertCell(-1).appendChild(button); 114 115 } … … 138 139 input.name='parameterStringValue__'+options[i+1]+'__protocol__'+rowId; 139 140 var tr=document.createElement('tr'); 141 tr.id='rowparameterStringValue__'+options[i+1]+'__protocol__'+rowId; 140 142 tbody.appendChild(tr); 141 143 tr.insertCell(-1).appendChild(input); … … 143 145 button.type='button'; 144 146 button.value='delete'; 145 button. onclick=function(){jQuery(tr).remove()};147 button.setAttribute('onclick','removeById(\''+tr.id+'\');'); 146 148 tr.insertCell(-1).appendChild(button); 147 149 } … … 156 158 } 157 159 160 function removeById(id) { 161 jQuery(document.getElementById(id)).remove(); 162 } 158 163 159 164 function addSelector(row,selectedText,options){
Note: See TracChangeset
for help on using the changeset viewer.