~timo-jyrinki/ubuntu-calendar-app/use_pickerpanelworkaround_lp1351024

« back to all changes in this revision

Viewing changes to EventListModel.qml

  • Committer: Jason
  • Date: 2014-07-29 21:18:36 UTC
  • mfrom: (370 ubuntu-calendar-app)
  • mto: This revision was merged to the branch mainline in revision 373.
  • Revision ID: gerlowskija@gmail.com-20140729211836-3a0np2sfnk1q3jr8
Merge trunk branch back into this bug-fix branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        }
34
34
    }
35
35
 
 
36
    function getCollections(){
 
37
        var cals = [];
 
38
        var collections = eventModel.collections;
 
39
        for(var i = 0 ; i < collections.length ; ++i) {
 
40
            var cal = collections[i];
 
41
            if( cal.extendedMetaData("collection-type") === "Calendar" ) {
 
42
                cals.push(cal);
 
43
            }
 
44
        }
 
45
        return cals;
 
46
        }
 
47
 
36
48
    onStartPeriodChanged: {
37
49
        isLoading = true
38
50
    }