← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11572: Minor

 

------------------------------------------------------------
revno: 11572
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-08-05 16:35:21 +0200
message:
  Minor
modified:
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-07-26 09:11:34 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js	2013-08-05 14:35:21 +0000
@@ -67,6 +67,7 @@
 {
 	$( ".item" ).draggable( {
 	    containment: "#contentDiv",
+	    helper: "clone",
 	    stack: ".item",
 	    revert: true,
 	    start: dhis2.db.dragStart,
@@ -86,12 +87,14 @@
 
 dhis2.db.dragStart = function( event, ui ) {	
 	$( this ).css( "opacity", "0.6" );
+	$( this ).hide();
 	dhis2.db.currentItem = $( this ).attr( "id" );
 	dhis2.db.currentItemPos = $( this ).data( "position" );
 }
 
 dhis2.db.dragStop = function( event, ui ) {
 	$( this ).css( "opacity", "1.0" );
+	$( this ).show();
 	$( ".dropItem" ).hide();
 	dhis2.db.currentItem = undefined;
 }