Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Added a new edit function, this will eventually replace the other one.
- whitepages.address_book.ChangeSet.prototype.simpleEditNew = function(element, oldValue, newValue) {
- console.log("NEW simple edit called");
- console.trace();
- var xpath = element.attr('data-path');
- var object_id = element.attr('data-field-id');
- var field_name = element.attr('data-field');
- if (object_id !== undefined && object_id.length > 0) {
- xpath += "[@id='" + object_id + "']";
- }
- this.changeset.push({
- command: 'update',
- xpath: xpath,
- field: field_name,
- old_val: oldValue,
- new_val: newValue
- });
- };
Add Comment
Please, Sign In to add comment