Commit d59e83351c8935c8a1a28ba966b409568566f2a7
1 parent
3c9d0ac4
KTS-1597
"AJAX dashlets with draggable top bars. " Fixed. Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6390 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
6 additions
and
3 deletions
resources/js/DDList.js
| @@ -3,12 +3,13 @@ YAHOO.example.DDList = function(id, sGroup, config) { | @@ -3,12 +3,13 @@ YAHOO.example.DDList = function(id, sGroup, config) { | ||
| 3 | this.init(id, sGroup, config); | 3 | this.init(id, sGroup, config); |
| 4 | this.initFrame(); | 4 | this.initFrame(); |
| 5 | this.logger = this.logger || YAHOO; | 5 | this.logger = this.logger || YAHOO; |
| 6 | + this.addInvalidHandleClass("dashboard_block_body"); | ||
| 6 | } | 7 | } |
| 7 | 8 | ||
| 8 | var s = this.getDragEl().style; | 9 | var s = this.getDragEl().style; |
| 9 | //s.borderColor = "transparent"; | 10 | //s.borderColor = "transparent"; |
| 10 | //s.backgroundColor = "#f6f5e5"; | 11 | //s.backgroundColor = "#f6f5e5"; |
| 11 | - //s.opacity = 0.76; | 12 | + s.opacity = 0.76; |
| 12 | //s.filter = "alpha(opacity=76)"; | 13 | //s.filter = "alpha(opacity=76)"; |
| 13 | }; | 14 | }; |
| 14 | 15 |
thirdpartyjs/yui/dragdrop/dragdrop.js
| @@ -768,8 +768,6 @@ YAHOO.util.DragDrop.prototype = { | @@ -768,8 +768,6 @@ YAHOO.util.DragDrop.prototype = { | ||
| 768 | if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) { | 768 | if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) { |
| 769 | } else { | 769 | } else { |
| 770 | if (this.clickValidator(e)) { | 770 | if (this.clickValidator(e)) { |
| 771 | - | ||
| 772 | - | ||
| 773 | // set the initial element position | 771 | // set the initial element position |
| 774 | this.setStartPosition(); | 772 | this.setStartPosition(); |
| 775 | 773 | ||
| @@ -888,6 +886,10 @@ YAHOO.util.DragDrop.prototype = { | @@ -888,6 +886,10 @@ YAHOO.util.DragDrop.prototype = { | ||
| 888 | for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) { | 886 | for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) { |
| 889 | valid = !Dom.hasClass(node, this.invalidHandleClasses[i]); | 887 | valid = !Dom.hasClass(node, this.invalidHandleClasses[i]); |
| 890 | } | 888 | } |
| 889 | + | ||
| 890 | + if(node.className !== 'dashboard_block_handle'){ | ||
| 891 | + valid = false; | ||
| 892 | + } | ||
| 891 | 893 | ||
| 892 | 894 | ||
| 893 | return valid; | 895 | return valid; |