TiddlyWiki.org

Changeset 4982

Show
Ignore:
Timestamp:
16/05/08 15:24:21 (2 months ago)
Author:
simon
Message:

monkeygtd: mismatched realm report

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/contributors/SimonBaird/mgtd3/framework/MgtdList.js

    r4720 r4982  
    3737                                return active[0]; 
    3838                        } 
    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                        } 
    4142                        else { 
     43                                // if there's more than one active realm use a slice to get the realm priority and choose the highest one 
    4244                                // TODO, make this prettier 
    4345                                var toBeat = "zzzzzzz"; 
  • Trunk/contributors/SimonBaird/mgtd3/framework/MgtdProcessInbox.js

    r4545 r4982  
    66                                'W': 'Waiting For', 
    77                                'N': 'Next', 
    8                                 'F': 'Future' 
     8                                'F': 'Future', 
     9                                'S': 'Starred' 
    910                        }; 
    1011 
  • Trunk/contributors/SimonBaird/mgtd3/framework/MgtdTagControls.js

    r4979 r4982  
    4444        hasTag: function(tag) { 
    4545                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; 
    4671        } 
    4772 
  • Trunk/contributors/SimonBaird/mgtd3/menus/ReviewMenu.tiddler

    r4720 r4982  
    55[[Delegated Tasks Dashboard]] 
    66[[Cleanup]] 
     7[[Missmatched Realms]] 
    78[[Subprojects]] 
    89 
  • Trunk/contributors/SimonBaird/mgtd3/views/TitleButtons.tiddler

    r4979 r4982  
    123123<span class='title' macro='view title'></span> (Area)<span macro="help Area"></span> 
    124124<span macro="singleToggleTag tag:Starred"></span> 
     125<span class="label">Realm:</span><span macro="multiSelectTag Realm allowNone:on"></span> 
    125126<!--}}}--> 
    126127