Changeset 4982
- Timestamp:
- 16/05/08 15:24:21 (2 months ago)
- Files:
-
- Trunk/contributors/SimonBaird/mgtd3/framework/MgtdList.js (modified) (1 diff)
- Trunk/contributors/SimonBaird/mgtd3/framework/MgtdProcessInbox.js (modified) (1 diff)
- Trunk/contributors/SimonBaird/mgtd3/framework/MgtdTagControls.js (modified) (1 diff)
- Trunk/contributors/SimonBaird/mgtd3/globalviews/Missmatched Realms.tiddler (added)
- Trunk/contributors/SimonBaird/mgtd3/menus/ReviewMenu.tiddler (modified) (1 diff)
- Trunk/contributors/SimonBaird/mgtd3/views/TitleButtons.tiddler (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/contributors/SimonBaird/mgtd3/framework/MgtdList.js
r4720 r4982 37 37 return active[0]; 38 38 } 39 40 // if there's more than one active realm use a slice to get the realm priority and choose the highest one 39 else if (active.length == 0) { 40 return fastTagged('Realm')[0]; // whatever... 41 } 41 42 else { 43 // if there's more than one active realm use a slice to get the realm priority and choose the highest one 42 44 // TODO, make this prettier 43 45 var toBeat = "zzzzzzz"; Trunk/contributors/SimonBaird/mgtd3/framework/MgtdProcessInbox.js
r4545 r4982 6 6 'W': 'Waiting For', 7 7 'N': 'Next', 8 'F': 'Future' 8 'F': 'Future', 9 'S': 'Starred' 9 10 }; 10 11 Trunk/contributors/SimonBaird/mgtd3/framework/MgtdTagControls.js
r4979 r4982 44 44 hasTag: function(tag) { 45 45 return this.tags.contains(tag); 46 }, 47 48 getParent: function(tag) { 49 return this.getByIndex(tag); 50 }, 51 52 realmMismatchWithParent: function(tag) { 53 var myRealm = this.getParent('Realm')[0]; 54 55 if (!myRealm) 56 return true; // no realm, should be fixed.. 57 58 var myParent = this.getParent(tag)[0]; 59 if (!myParent) 60 return false; // nothing to be mismatched with 61 62 var parentTiddler = store.fetchTiddler(this.getParent(tag)[0]); 63 if (!parentTiddler) 64 return true; // doubt it would ever happen but... 65 66 parentRealm = parentTiddler.getParent('Realm')[0]; // we assume one realm only... 67 if (!parentRealm) 68 return true; 69 70 return parentRealm != myRealm; 46 71 } 47 72 Trunk/contributors/SimonBaird/mgtd3/menus/ReviewMenu.tiddler
r4720 r4982 5 5 [[Delegated Tasks Dashboard]] 6 6 [[Cleanup]] 7 [[Missmatched Realms]] 7 8 [[Subprojects]] 8 9 Trunk/contributors/SimonBaird/mgtd3/views/TitleButtons.tiddler
r4979 r4982 123 123 <span class='title' macro='view title'></span> (Area)<span macro="help Area"></span> 124 124 <span macro="singleToggleTag tag:Starred"></span> 125 <span class="label">Realm:</span><span macro="multiSelectTag Realm allowNone:on"></span> 125 126 <!--}}}--> 126 127