Changeset 511
- Timestamp:
- 01/16/06 14:12:38 (3 years ago)
- Files:
-
- mochikit/branches/scriptaculous/MochiKit/Controls.js (modified) (6 diffs)
- mochikit/branches/scriptaculous/MochiKit/DragAndDrop.js (modified) (2 diffs)
- mochikit/branches/scriptaculous/MochiKit/New.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/branches/scriptaculous/MochiKit/Controls.js
r494 r511 441 441 442 442 setOptions: function (options) { 443 this.options = Object.extend({443 this.options = MochiKit.Base.update({ 444 444 choices: 10, 445 445 partialSearch: true, … … 502 502 503 503 ***/ 504 Field.scrollFreeActivate = function (field) { 505 setTimeout(function () { 506 Field.activate(field); 507 }, 1); 508 }; 509 510 Ajax.InPlaceEditor = function () { 504 505 Ajax.InPlaceEditor = function (element, url, options) { 511 506 this.__init__(element, url, options); 512 507 }; … … 519 514 this.element = MochiKit.DOM.getElement(element); 520 515 521 this.options = Object.extend({516 this.options = MochiKit.Base.update({ 522 517 okButton: true, 523 518 okText: 'ok', … … 699 694 new Ajax.Request( 700 695 this.options.loadTextURL, 701 Object.extend({696 MochiKit.Base.update({ 702 697 asynchronous: true, 703 698 onComplete: MochiKit.Base.bind(this.onLoadedExternalText, this) … … 734 729 // do this first, sometimes the ajax call returns before we get a 735 730 // chance to switch on Saving which means this will actually switch on 736 // Saving *after* we 've left edit mode causing Saving to be731 // Saving *after* we have left edit mode causing Saving to be 737 732 // displayed indefinitely 738 733 this.onLoading(); … … 745 740 }, 746 741 this.url, 747 Object.extend({742 MochiKit.Base.update({ 748 743 parameters: this.options.callback(form, value), 749 744 onComplete: MochiKit.Base.bind(this.onComplete, this), mochikit/branches/scriptaculous/MochiKit/DragAndDrop.js
r507 r511 200 200 201 201 register: function (draggable) { 202 if (this.drags.length == 0) {202 if (this.drags.length === 0) { 203 203 this.eventMouseUp = MochiKit.DOM.bindAsEventListener( 204 204 this.endDrag, this); … … 219 219 return d != draggable 220 220 }, this.drags); 221 if (this.drags.length == 0) {221 if (this.drags.length === 0) { 222 222 MochiKit.Event.stopObserving(document, 'mouseup', 223 223 this.eventMouseUp); mochikit/branches/scriptaculous/MochiKit/New.js
r502 r511 514 514 515 515 for (var i = 0; i < elements.length; i++) { 516 var queryComponent = Form.serializeElement(elements[i]);516 var queryComponent = MochiKit.Form.serializeElement(elements[i]); 517 517 if (queryComponent) { 518 518 queryComponents.push(queryComponent); … … 527 527 var elements = new Array(); 528 528 529 for (tagName in Form.Element.Serializers) {529 for (tagName in MochiKit.Form.Serializers) { 530 530 var tagElements = form.getElementsByTagName(tagName); 531 531 for (var j = 0; j < tagElements.length; j++) { … … 900 900 element.select(); 901 901 } 902 }, 903 904 scrollFreeActivate: function (field) { 905 setTimeout(function () { 906 Field.activate(field); 907 }, 1); 902 908 } 903 909 };
