[qo-modules-dev] [6] more work

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


Revision: 6
Author:   ytorres
Date:     2008-11-08 17:01:31 +0100 (Sat, 08 Nov 2008)

Log Message:
-----------
more work

Modified Paths:
--------------
    yannick/index.html
    yannick/main.js
    yannick/shortcuts.css
    yannick/shortcuts.js


Modified: yannick/index.html
===================================================================
--- yannick/index.html	2008-11-08 11:18:48 UTC (rev 5)
+++ yannick/index.html	2008-11-08 16:01:31 UTC (rev 6)
@@ -5,9 +5,9 @@
 <title>test</title>
 
 <!-- EXT -->
-<link rel="stylesheet" type="text/css" href="../ext-2.2/resources/css/ext-all.css" />
-<script src="../ext-2.2/adapter/ext/ext-base.js"></script>
-<script src="../ext-2.2/ext-all.js"></script>
+<link rel="stylesheet" type="text/css" href="../../ext-2.2/resources/css/ext-all.css" />
+<script src="../../ext-2.2/adapter/ext/ext-base.js"></script>
+<script src="../../ext-2.2/ext-all.js"></script>
 
 <!-- shortcuts -->
 <link rel="stylesheet" type="text/css" href="shortcuts.css" />

Modified: yannick/main.js
===================================================================
--- yannick/main.js	2008-11-08 11:18:48 UTC (rev 5)
+++ yannick/main.js	2008-11-08 16:01:31 UTC (rev 6)
@@ -11,10 +11,12 @@
 
     var vport = new Ext.Viewport({
 		    layout: 'border',
+		    cls: 'test',
 		    items: {
 			xtype: 'shortcutsView',
 			region: 'center',
 			store: store
 		    }
 	});
+
 });
\ No newline at end of file

Modified: yannick/shortcuts.css
===================================================================
--- yannick/shortcuts.css	2008-11-08 11:18:48 UTC (rev 5)
+++ yannick/shortcuts.css	2008-11-08 16:01:31 UTC (rev 6)
@@ -7,10 +7,13 @@
  */
 
 body {
-	background: white;
 	font: 11px Arial, Helvetica, sans-serif;
 }
 
+.test {
+	background: url('wallpaper.jpg') no-repeat;
+}
+
 .thumb {
 	background: transparent;
 	padding: 3px;
@@ -34,22 +37,16 @@
 }
 
 .x-view-over{
+    background: #EFEFEF url(img/shadow.png) repeat;
     border:1px solid #dddddd;
     padding: 4px;
 }
 
 .x-view-selected{
+    background: #EFEFEF url(img/gradient.gif) repeat-x scroll left top;
 	border:1px solid #99bbe8;
 	padding: 4px;
 }
 .x-view-selected .thumb{
 	background:transparent;
-}
-
-.loading-indicator {
-	font-size:11px;
-	background-repeat: no-repeat;
-	background-position: left;
-	padding-left:20px;
-	margin:10px;
 }
\ No newline at end of file

Modified: yannick/shortcuts.js
===================================================================
--- yannick/shortcuts.js	2008-11-08 11:18:48 UTC (rev 5)
+++ yannick/shortcuts.js	2008-11-08 16:01:31 UTC (rev 6)
@@ -10,9 +10,6 @@
 Ext.namespace('Ext.ux');
 
 Ext.ux.shortcutsView = Ext.extend(Ext.DataView, {
-    // Prototype Defaults, can be overridden by user's config object
-    //propA: 1,
-    style: 'border: 1px solid #FF0000',
     height: this.height,
     tpl: new Ext.XTemplate(
 	    '<tpl for=".">',
@@ -50,23 +47,11 @@
     },
  
     initComponent: function(){
-        // Called during component initialization
- 
-        // Config object has already been applied to 'this' so properties can 
-        // be overriden here or new properties (e.g. items, tools, buttons) 
-        // can be added, eg:
         Ext.apply(this, {});
- 
-        // Before parent code
- 
-        // Call parent (required)
         Ext.ux.shortcutsView.superclass.initComponent.apply(this, arguments);
- 
-        // After parent code
-        // e.g. install event handlers on rendered component
 	this.store.on('load', this.onStoreLoad, this);
     },
- 
+
     // Override other inherited methods 
     onRender: function() {
         // Call parent (required)
@@ -78,7 +63,7 @@
 	this.DDInit();
 	
 	// Init Editor for the label
-        this.getEl().on('dblclick', this.LabelEditorInit, this);
+        this.getEl().on('dblclick', this.LabelEditorInit, this, {delegate: 'span.x-editable'});
 	
 	// Init contextMenu for shortCut
         this.getEl().on('contextmenu', this.ctxInit, this);
@@ -185,8 +170,6 @@
     },
     
     _LabelEditorSaveToFileSystem: function(originName, NewValue, item) {
-     //console.log(originName);
-     //console.log(NewValue);
         var item = item;
 	Ext.Ajax.request({
 	  scope: this,
@@ -199,9 +182,7 @@
 	    var o = Ext.util.JSON.decode(response.responseText);
 	    //Update originName
 	    var record = this.store.getById(this.currentRecord);
-	    console.log(record);
 	    record.data['originName'] = o.newName;
-	    console.log(record);
 	  }
 	});
 
@@ -241,12 +222,9 @@
             handler: function(){}
         });
         menu.showAt(e.getXY());
-	
-	      console.log(record.data.originName);
     },
 
     _ctxView : function(e) {
-	      console.log('contextMenu view');
 	
 	var menu = new Ext.menu.Menu();
 	menu.add({


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