Lines Matching refs:drafts
3531 var drafts = [];
3546 drafts.push(obj);
3556 if (drafts.length == 1)
3558 this.loadDraft(drafts[0].data, mxUtils.bind(this, function()
3560 this.removeDatabaseItem(drafts[0].key);
3563 else if (drafts.length > 1)
3565 var ts = new Date(drafts[0].modified);
3567 var dlg = new DraftDialog(this, (drafts.length > 1) ? mxResources.get('selectDraft') :
3569 (drafts.length > 1) ? null : drafts[0].data, mxUtils.bind(this, function(index)
3574 this.loadDraft(drafts[index].data, mxUtils.bind(this, function()
3576 this.removeDatabaseItem(drafts[index].key);
3585 this.removeDatabaseItem(drafts[index].key);
3592 }), null, null, null, (drafts.length > 1) ? drafts : null);