- Timestamp:
- 2009-04-21 15:04:26 (3 years ago)
- Location:
- tupper/trunk/tupper-site/src/main/kauri
- Files:
-
- 2 edited
-
pages/time..xml (modified) (1 diff)
-
static/js/time.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tupper/trunk/tupper-site/src/main/kauri/pages/time..xml
r1196 r1198 115 115 </td> 116 116 <td class="action"> 117 <img class="delete_action" kauri-role="delete"src="${publicUri('service:/main/static/img/delete.png')}" />117 <img class="delete_action" src="${publicUri('service:/main/static/img/delete.png')}" /> 118 118 </td> 119 119 </tr> -
tupper/trunk/tupper-site/src/main/kauri/static/js/time.js
r1197 r1198 164 164 performancesControl.getElement().childCreated(function(event, child) { 165 165 copyValues(child); 166 var days = ["ma","di","wo","do","vr","za","zo"]; 167 for(var i = 0; i < days.length; i++){ 168 var control = child.findControl(days[i]); 169 control.getElement().valueChanged(function(){ 170 171 countTotal(); 172 }); 173 } 174 $(".delete_action", child.getElement("item")).click(function() { 175 performancesControl.removeChildById(child.getId()); 176 countTotal(); 177 }); 166 178 $(".copy_action", child.getElement("item")).click(function() { 167 179 var currentChildIndex = performancesControl.getChildIndex(child.getId()); … … 178 190 newChild.findControl("zo").setValue(child.findControl("zo").getValue()); 179 191 copyValues(newChild); 192 countTotal(); 180 193 }); 181 194 applyPerformanceScroll($("#details_week tbody tr").length); … … 187 200 var hiddenCustomer = child.findControl("customer"); 188 201 hiddenCustomer.getElement().valueChanged(function(){ 189 var value = hiddenCustomer.get UserValue();202 var value = hiddenCustomer.getValue(); 190 203 $($($(hiddenCustomer.getElement()).get(0).parentNode.parentNode).children()[0]).html(value); 191 204 }); 192 205 var hiddenProject = child.findControl("project"); 193 206 hiddenProject.getElement().valueChanged(function(){ 194 var value = hiddenProject.get UserValue();207 var value = hiddenProject.getValue(); 195 208 $($($(hiddenProject.getElement()).get(0).parentNode.parentNode).children()[0]).html(value); 196 209 }); 197 210 var hiddenTask = child.findControl("task"); 198 211 hiddenTask.getElement().valueChanged(function(){ 199 var value = hiddenTask.get UserValue();212 var value = hiddenTask.getValue(); 200 213 $($($(hiddenTask.getElement()).get(0).parentNode.parentNode).children()[0]).html(value); 201 214 }); … … 266 279 var data = {performances:json}; 267 280 performancesForm.setWireValue(data); 268 } 281 countTotal(); 282 }
Note: See TracChangeset
for help on using the changeset viewer.