[qo-modules-dev] [25] fix bug

[ Thread Index | Date Index | More lists.tuxfamily.org/qo-modules-dev Archives ]


Revision: 25
Author:   ytorres
Date:     2008-11-16 15:32:34 +0100 (Sun, 16 Nov 2008)

Log Message:
-----------
fix bug

Modified Paths:
--------------
    yannick/home/desktop/.shortcutState
    yannick/shortcuts.js


Modified: yannick/home/desktop/.shortcutState
===================================================================
--- yannick/home/desktop/.shortcutState	2008-11-16 14:23:19 UTC (rev 24)
+++ yannick/home/desktop/.shortcutState	2008-11-16 14:32:34 UTC (rev 25)
@@ -2,6 +2,12 @@
       <items>
       
 	<element>
+	  <filename>c</filename>
+	  <posx>804</posx>
+	  <posy>4</posy>
+	</element>
+	
+	<element>
 	  <filename>28-10-08_18-12-18-000.jpg</filename>
 	  <posx>4</posx>
 	  <posy>4</posy>
@@ -20,21 +26,45 @@
 	</element>
 	
 	<element>
-	  <filename>My usics</filename>
-	  <posx>304</posx>
+	  <filename>d</filename>
+	  <posx>904</posx>
 	  <posy>4</posy>
 	</element>
 	
 	<element>
+	  <filename>My Doumnt</filename>
+	  <posx>183</posx>
+	  <posy>156</posy>
+	</element>
+	
+	<element>
+	  <filename>b</filename>
+	  <posx>404</posx>
+	  <posy>4</posy>
+	</element>
+	
+	<element>
+	  <filename>ae</filename>
+	  <posx>480</posx>
+	  <posy>196</posy>
+	</element>
+	
+	<element>
+	  <filename>My Musics</filename>
+	  <posx>369</posx>
+	  <posy>47</posy>
+	</element>
+	
+	<element>
 	  <filename>05-11-08_17-41-0.jpg</filename>
 	  <posx>783</posx>
 	  <posy>91</posy>
 	</element>
 	
 	<element>
-	  <filename>My Doumnt</filename>
-	  <posx>183</posx>
-	  <posy>156</posy>
+	  <filename>e</filename>
+	  <posx>509</posx>
+	  <posy>95</posy>
 	</element>
 	
       </items>
\ No newline at end of file

Modified: yannick/shortcuts.js
===================================================================
--- yannick/shortcuts.js	2008-11-16 14:23:19 UTC (rev 24)
+++ yannick/shortcuts.js	2008-11-16 14:32:34 UTC (rev 25)
@@ -369,8 +369,12 @@
 		this.setIconPosition();
 
 	    } else {
-	      if( o.msg ) { return 'already'; }
-	      else { return 'unknow'; }
+	      if( o.msg ) {
+		this.showMessageWindow('Error', 'this item allready exist ! Change the name', 'error');
+	      }
+	      else {
+		this.showMessageWindow('Error', 'Unknow error when change the name', 'error');
+	      }
 	    }
 	  }
 	});
@@ -600,13 +604,13 @@
 		    this.store.add(Record);
 
 		    // Move to the right position according to the right-click event
-		    Ext.get('shortcuts_'+o.item.id).moveTo(e.getPageX(),e.getPageY(),true);
+		    Ext.get('shortcuts_'+o.item.id).moveTo(e.getPageX(),e.getPageY());
 
 		    // Re-initialise the drag&drop functionnality
 		    this.DDInit();
 
-		    // TODO
-		    this.showMessageWindow('TODO', 'We must pass the position to update the state\'s file on success. If we reload the page for now, the state of this new item is not restaure.', 'error');
+		    //Save position
+		    this.setIconPosition();
 
 		  } else {
 		    this.showMessageWindow('Error', 'this item allready exist ! Change the name', 'error'); // can be info in 3 parameters


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/