diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-05 22:44:09 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-05 23:23:05 +0100 |
commit | e33efebbe5971909226d18b24d2b7030d3772665 (patch) | |
tree | 6e3b1004280ee3aecd529b69888b50b90407cb50 /framework/Web/Javascripts/source | |
parent | 2a1b748241d09a600c8f4c3176059c87371f127b (diff) |
Re-enable prototype-based scripts, and enable old drag&drop controls
Diffstat (limited to 'framework/Web/Javascripts/source')
-rwxr-xr-x | framework/Web/Javascripts/source/prado/activecontrols/dragdrop.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/dragdrop.js b/framework/Web/Javascripts/source/prado/activecontrols/dragdrop.js index 7fa9e791..9e583c1f 100755 --- a/framework/Web/Javascripts/source/prado/activecontrols/dragdrop.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/dragdrop.js @@ -1,20 +1,22 @@ +jQuery.noConflict(); + /** * DropContainer control */ - -Prado.WebUI.DropContainer = jQuery.klass(Prado.WebUI.CallbackControl, + +Prado.WebUI.DropContainer = Class.create(Prado.WebUI.CallbackControl, { onInit: function(options) { this.options = options; - Object.extend (this.options, + Object.extend (this.options, { onDrop: this.onDrop.bind(this) }); - + Droppables.add (options.ID, this.options); }, - + onDrop: function(dragElement, dropElement, event) { var elementId=dragElement.id.replace(/clone_/,""); |