|
Lines 431-439
function AddEventHandlers (oldcontrol, newcontrol, newinputid ) {
Link Here
|
| 431 |
// This function is a helper for CloneField and CloneSubfield. |
431 |
// This function is a helper for CloneField and CloneSubfield. |
| 432 |
// It adds the event handlers from oldcontrol to newcontrol. |
432 |
// It adds the event handlers from oldcontrol to newcontrol. |
| 433 |
// newinputid is the id attribute of the cloned controlling input field |
433 |
// newinputid is the id attribute of the cloned controlling input field |
| 434 |
// Note: This code depends on the jQuery data for events; this structure |
434 |
// Note: This code depends on the jQuery internal method _data which is not recommended |
| 435 |
// is moved to _data as of jQuery 1.8. |
435 |
var ev = jQuery._data(oldcontrol, 'events') |
| 436 |
var ev= $(oldcontrol).data('events'); |
|
|
| 437 |
if(typeof ev != 'undefined') { |
436 |
if(typeof ev != 'undefined') { |
| 438 |
$.each(ev, function(prop,val) { |
437 |
$.each(ev, function(prop,val) { |
| 439 |
$.each(val, function(prop2,val2) { |
438 |
$.each(val, function(prop2,val2) { |
| 440 |
- |
|
|