rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
finishDrag: function(event, success) { this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this, event); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); var d = this.currentDelta(); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, d[1]-this.delta[1], d[0]-this.delta[0]); } else { this.delta = d; } if(this.options.zindex) this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Draggables.deactivate(this); Droppables.reset(); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/e321fea35b6ecd3ecdf4ed7662ff8917ab1af51f/dragdrop.js/clean/src/dragdrop.js |
||
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } | finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
|
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
||
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
||
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
||
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.unregisterEvents(); | finishDrag: function(event, success) { this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/2763f23a530881acd784be63eed95031c54a4f3a/dragdrop.js/buggy/src/dragdrop.js |
|
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.element.style.zIndex = this.originalZ; | if(this.options.zindex) this.element.style.zIndex = this.originalZ; | finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
popupWindow.close(); | if (popupWindow != null) { popupWindow.close(); } | function finishEPerson(){ selectAll(window.document.forms[0].eperson_id); popupWindow.close();} | 3999 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3999/545fb94a4612ae770ea580bd783c1eea95cada6a/utils.js/buggy/dspace/jsp/utils.js |
refreshBufferList(g_cq_buffer_current); | refreshBufferList(g_cq_buffer_current, "finishImport"); | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); | if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/060bfd9298d0dda1cada0ef8d4fc481b37878a48/cq.js/clean/cq.js |
var theOutputDoc = null; | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js |
|
if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; | if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } if (theOutputDoc == null) return; var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } var theTimeout = null; if (theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); if (is.gecko) { theOutputDoc.normalize(); } debug("finishImport: theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js |
if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } var theTimeout = null; if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); | refreshBufferList(g_cq_buffer_current, "finishImport"); | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js |
var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js |
|
debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } } | submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); | function finishImport() { debug('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; debug("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; // if we timed out, try again if (theList.length < 1) { debug("no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them debug("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("cqImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js |
debug('finishImport: checking for output'); | debug.print('finishImport: checking for output'); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: theOutput = " + theOutput); | debug.print("finishImport: theOutput = " + theOutput); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: ie, using XMLDocument"); | debug.print("finishImport: ie, using XMLDocument"); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: no list: setting new timeout " + g_cq_timeout); | debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
return null; | return; | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
||
debug("finishImport: gecko workaround"); | debug.print("finishImport: normalizing for gecko workaround"); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); | debug.print("finishImport: theList = " + theList.length); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); | debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("finishImport: null historyNode"); | debug.print("finishImport: null historyNode"); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
saveQueryHistory(theValue, true); | saveQueryHistory(theValue, true, false); | function finishImport() { debug('finishImport: checking for output'); var theOutput = getResultFrame(); debug("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug("finishImport: no list: setting new timeout " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return null; } clearTimeout(theTimeout); // TODO if the imported worksheet has rows/cols attributes, use them if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug("finishImport: gecko workaround"); theOutputDoc.normalize(); } debug("finishImport: theList = " + theList.innerHTML + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug('finishImport'); | function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); //alert("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); //alert("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
|
debug("theOutput = " + theOutput); | function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); //alert("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); //alert("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
|
debug("theList = " + theList + ", length = " + theList.length); | function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); //alert("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); //alert("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
|
debug("i = " + i + ", " + theValue); | function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); //alert("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); //alert("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
|
submitForm(document.getElementById(g_cq_query_form), | submitForm(document.getElementById(g_cq_query_form_id), | function finishImport() { //alert('finishImport'); var theOutput = getResultFrame(); var theOutputDoc = null; //alert("theOutput = " + theOutput); if (theOutput) { if (is.ie) { theOutputDoc = theOutput.contentWindow.document; } else { theOutputDoc = theOutput.contentDocument; } if (theOutputDoc) { var theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); if (is.ie && theOutputDoc.XMLDocument) { theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } // is.ie var theTimeout = null; if (theList.length < 1) theTimeout = setTimeout('finishImport();', g_cq_timeout); clearTimeout(theTimeout); //alert("theList = " + theList + ", length = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { theValue = unescape( (theList[i]).firstChild.nodeValue ); //alert("i = " + i + ", " + theValue); getBuffer(i).value = theValue; } // for theList // leave the user in the same buffer refreshBufferList(g_cq_buffer_current); //clearTimeout(theTimeout); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form), theQuery, "text/html"); } // if theOutputDoc } // if theOutput} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
saveQueryHistory(theValue, true, false); | saveQueryHistory(theValue, false); | function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return; } clearTimeout(theTimeout); // TODO use rows, cols from imported worksheet, if present if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug.print("finishImport: normalizing for gecko workaround"); theOutputDoc.normalize(); } debug.print("finishImport: theList = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); saveQueryHistory(theValue, true, false); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/6b355f08875fd342ed1dc304b04eaed9f1da1046/cq.js/buggy/cq.js |
debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); | debug.print("finishImport: ie, using XMLDocument = " + theOutputDoc.XMLDocument); theOutputDoc = theOutputDoc.XMLDocument; } if (theOutputDoc.getElementsByTagName(g_cq_buffers_area_id).length < 1) { retry = true; | function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return; } clearTimeout(theTimeout); // TODO use rows, cols from imported worksheet, if present if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug.print("finishImport: normalizing for gecko workaround"); theOutputDoc.normalize(); } debug.print("finishImport: theList = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); // set checkFlag false, to speed up imports saveQueryHistory(theValue, false); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); | theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); | function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return; } clearTimeout(theTimeout); // TODO use rows, cols from imported worksheet, if present if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug.print("finishImport: normalizing for gecko workaround"); theOutputDoc.normalize(); } debug.print("finishImport: theList = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); // set checkFlag false, to speed up imports saveQueryHistory(theValue, false); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " | if (retry) { debug.print("finishImport: retrying with new timeout = " | function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return; } clearTimeout(theTimeout); // TODO use rows, cols from imported worksheet, if present if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug.print("finishImport: normalizing for gecko workaround"); theOutputDoc.normalize(); } debug.print("finishImport: theList = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); // set checkFlag false, to speed up imports saveQueryHistory(theValue, false); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
if (theList.length < 1) { var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>Sorry, but ' + theUri + ' was empty</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html"); } | function finishImport() { debug.print('finishImport: checking for output'); var theOutput = getResultFrame(); debug.print("finishImport: theOutput = " + theOutput); if (theOutput == null) return; var theOutputDoc = theOutput.contentDocument; if (is.ie) theOutputDoc = theOutput.contentWindow.document; // no document? no results... if (theOutputDoc == null) return; // now check for buffers var theList = null; if (is.ie && theOutputDoc.XMLDocument) { debug.print("finishImport: ie, using XMLDocument"); theList = theOutputDoc.XMLDocument.getElementsByTagName (g_cq_buffer_basename); } else { theList = theOutputDoc.getElementsByTagName(g_cq_buffer_basename); } // if we timed out, try again var theTimeout = null; if (theList == null || theList.length < 1) { debug.print("finishImport: no list: setting new timeout = " + g_cq_timeout); theTimeout = setTimeout('finishImport();', g_cq_timeout); return; } clearTimeout(theTimeout); // TODO use rows, cols from imported worksheet, if present if (is.gecko) { // gecko has a problem with nodeValue longer than 4kB (encoded): // it creates multiple text-node children. // this is a DOM violation, but won't be fixed for some time. // see https://bugzilla.mozilla.org/show_bug.cgi?id=194231 // workaround: call normalize() early debug.print("finishImport: normalizing for gecko workaround"); theOutputDoc.normalize(); } debug.print("finishImport: theList = " + theList.length); var theValue = null; for (var i = 0; i < theList.length; i++) { if (theList[i] == null || theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); debug.print("finishImport: buffer i = " + i + ", " + theValue.length + ": " + theValue.substr(0, 16)); getBuffer(i).value = theValue; } // for theList // import query history too, by appending //clearQueryHistory(); var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug.print("finishImport: null historyNode"); } else { var theList = theOutputDoc.getElementsByTagName(g_cq_history_basename); for (var i = 0; i < theList.length ; i++) { if (g_cq_history_limit != null && i > g_cq_history_limit) break; if (theList[i].firstChild == null) continue; // TODO remove decode if encode isn't needed? theValue = decodeURIComponent( (theList[i]).firstChild.nodeValue ); // set checkFlag false, to speed up imports saveQueryHistory(theValue, false); } } // leave the user in the same buffer refreshBufferList(g_cq_buffer_current, "finishImport"); var theUri = document.getElementById(g_cq_uri).value; var theQuery = '<p>' + theUri + ' imported</p>'; submitForm(document.getElementById(g_cq_query_form_id), theQuery, "text/html");} // finishImport | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
|
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
if(this.include_scroll_offsets) Position.prepare(); | Position.prepare(); | fire: function(event, element) { if(!this.drops) return; var pX = Event.pointerX(event); var pY = Event.pointerY(event); if(this.include_scroll_offsets) Position.prepare(); var i = this.drops.length-1; do { var drop = this.drops[i]; if(this.is_affected(pX, pY, element, drop)) if(drop.droppable.onDrop) drop.droppable.onDrop(element); } while (i--); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/e2371ffc5409110da417048e1b81a38ed4e0c32e/dragdrop.js/clean/src/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) | if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.is_affected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); }, | 742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active); | this.last_active.onDrop(element, this.last_active.element); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active); }, | 4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/fa15ef3f30aa0fb2e99429f330a7bd78ce7fb145/dragdrop.js/clean/src/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
this.last_active.onDrop(element, this.last_active.element); | this.last_active.onDrop(element, this.last_active.element, event); | fire: function(event, element) { if(!this.last_active) return; Position.prepare(); if (this.isAffected(Event.pointerX(event), Event.pointerY(event), element, this.last_active)) if (this.last_active.onDrop) this.last_active.onDrop(element, this.last_active.element); }, | 167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } | this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); | fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/a2560b6edca4199bf8e5624a345f815890b122c2/Element.js/clean/Native/Element.js |
fn.apply(this, args || []); | fn.apply(this, args); | fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/32ee0a548ddaba7c3dbdbdfd0968c0a7603caa9a/Element.js/buggy/Native/Element.js |
if (this.events[type][fn]) this.events[type][fn].apply(this, args); | if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); | fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args); } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/4da6686ebc01d47f45382bb6f6e0a15b68d1dc75/Element.js/clean/Native/Element.js |
if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); | if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } | fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/clean/Native/Element.js |
for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } | this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); | fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/a2560b6edca4199bf8e5624a345f815890b122c2/Element.js/buggy/Native/Element.js |
fn.apply(this, args || []); | fn.apply(this, args); | fireEvent: function(type, args){ if (this.events && this.events[type]){ args = args || []; if ($type(args) != 'array') args = [args]; this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/32ee0a548ddaba7c3dbdbdfd0968c0a7603caa9a/Element.js/buggy/Native/Element.js |
if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); | if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } | fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/clean/Native/Element.js |
args = args || []; if ($type(args) != 'array') args = [args]; | fireEvent: function(type, args){ if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/40abbc9297ec4379ee70e76011e4bfc1dc45a5a6/Element.js/clean/Native/Element.js |
|
if (this.events[type][fn]) this.events[type][fn].apply(this, args); | if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); | fireEvent: function(type, args){ if (!this.events || !this.events[type]) return; for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args); } }, | 5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/4da6686ebc01d47f45382bb6f6e0a15b68d1dc75/Element.js/clean/Native/Element.js |
args = args || []; if ($type(args) != 'array') args = [args]; | fireEvent: function(type, args){ if (this.events && this.events[type]){ for (var fn in this.events[type]){ if (this.events[type][fn]) this.events[type][fn].apply(this, args || []); } } }, | 6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/40abbc9297ec4379ee70e76011e4bfc1dc45a5a6/Element.js/clean/Native/Element.js |
|
var nl, i, a, n, xsrc, xhref, el; | var xsrc, xhref; | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); | if (!new RegExp('(src|href)=', 'g').test(h)) return h; | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); | tinyMCE.selectElements(e, 'A,IMG,SELECT,AREA,IFRAME,BASE,INPUT,SCRIPT,EMBED,OBJECT,LINK', function (n) { xsrc = tinyMCE.getAttrib(n, "mce_tsrc"); xhref = tinyMCE.getAttrib(n, "mce_thref"); | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { } n[i].removeAttribute("mce_tsrc"); | if (xsrc != "") { try { n.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { } | n.removeAttribute("mce_tsrc"); } | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
n[i].removeAttribute("mce_thref"); | if (xhref != "") { try { n.href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
} | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
|
el = tinyMCE.selectNodes(e, function(n) { | return false; }); tinyMCE.selectNodes(e, function(n) { | fixGeckoBaseHREFBug : function(m, e, h) { var nl, i, a, n, xsrc, xhref, el; if (tinyMCE.isGecko) { if (m == 1) { h = h.replace(/\ssrc=/gi, " mce_tsrc="); h = h.replace(/\shref=/gi, " mce_thref="); return h; } else { el = new Array('a','img','select','area','iframe','base','input','script','embed','object','link'); for (a=0; a<el.length; a++) { n = e.getElementsByTagName(el[a]); for (i=0; i<n.length; i++) { xsrc = tinyMCE.getAttrib(n[i], "mce_tsrc"); xhref = tinyMCE.getAttrib(n[i], "mce_thref"); if (xsrc != "") { try { n[i].src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xsrc); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_tsrc"); } if (xhref != "") { try { n[i].href = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], xhref); } catch (e) { // Ignore, Firefox cast exception if local file wasn't found } n[i].removeAttribute("mce_thref"); } } } el = tinyMCE.selectNodes(e, function(n) { if (n.nodeType == 3 || n.nodeType == 8) { n.nodeValue = n.nodeValue.replace(/\smce_tsrc=/gi, " src="); n.nodeValue = n.nodeValue.replace(/\smce_thref=/gi, " href="); } return false; }); } } return h; }, | 10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.