Changeset 48
- Timestamp:
- 06/18/08 22:48:31 (6 months ago)
- Files:
-
- trunk/lily/lily/chrome/content/externals/check.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/metro.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/externals/check.js
r1 r48 51 51 this.inlet1["bang"]=function() { 52 52 if(checkEl.checked) { 53 checkEl. setAttribute("checked",false);53 checkEl.removeAttribute("checked"); 54 54 thisPtr.outlet1.doOutlet(false); 55 55 } else { 56 checkEl.setAttribute("checked", true);56 checkEl.setAttribute("checked","checked"); 57 57 thisPtr.outlet1.doOutlet(true); 58 58 } 59 59 } 60 60 61 this.inlet1["bool"]=function(msg) { 62 if(msg) { 63 checkEl.setAttribute("checked","checked"); 64 thisPtr.outlet1.doOutlet(true); 65 } else { 66 checkEl.removeAttribute("checked"); 67 thisPtr.outlet1.doOutlet(false); 68 } 69 } 70 71 this.inlet1["num"]=function(val) { 72 if(val) { 73 checkEl.setAttribute("checked","checked"); 74 thisPtr.outlet1.doOutlet(true); 75 } else { 76 checkEl.removeAttribute("checked"); 77 thisPtr.outlet1.doOutlet(false); 78 } 79 } 80 61 81 //custom html 62 82 this.ui=new LilyObjectView(this,"<input style=\"width:10px;height:10px\" id=\""+ this.createElID("checkbox") +"\" type=\"checkbox\"/>"); trunk/lily/lily/chrome/content/externals/metro.js
r1 r48 50 50 51 51 this.inlet1["bool"]=function(msg) { 52 if(msg && !running)52 if(msg) 53 53 start(); 54 54 else … … 57 57 58 58 this.inlet1["num"]=function(val) { 59 if(val && !running)59 if(val) 60 60 start(); 61 61 else
