Commit d59e83351c8935c8a1a28ba966b409568566f2a7

Authored by Jalaloedien
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
resources/js/DDList.js
... ... @@ -3,12 +3,13 @@ YAHOO.example.DDList = function(id, sGroup, config) {
3 3 this.init(id, sGroup, config);
4 4 this.initFrame();
5 5 this.logger = this.logger || YAHOO;
  6 + this.addInvalidHandleClass("dashboard_block_body");
6 7 }
7 8  
8 9 var s = this.getDragEl().style;
9 10 //s.borderColor = "transparent";
10 11 //s.backgroundColor = "#f6f5e5";
11   - //s.opacity = 0.76;
  12 + s.opacity = 0.76;
12 13 //s.filter = "alpha(opacity=76)";
13 14 };
14 15  
... ...
thirdpartyjs/yui/dragdrop/dragdrop.js
... ... @@ -768,8 +768,6 @@ YAHOO.util.DragDrop.prototype = {
768 768 if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) ) {
769 769 } else {
770 770 if (this.clickValidator(e)) {
771   -
772   -
773 771 // set the initial element position
774 772 this.setStartPosition();
775 773  
... ... @@ -888,6 +886,10 @@ YAHOO.util.DragDrop.prototype = {
888 886 for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
889 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 895 return valid;
... ...