move completely to fetch

This commit is contained in:
Luke Pulverenti 2015-11-28 03:07:44 -05:00
parent ee899a7332
commit 9932bc3eb5
168 changed files with 948 additions and 945 deletions

View file

@ -39,13 +39,12 @@
Dashboard.showLoadingMsg();
HttpClient.send({
var xhr = new XMLHttpRequest();
xhr.open('GET', 'components/metadataeditor/metadataeditor.template.html', true);
type: 'GET',
url: 'components/metadataeditor/metadataeditor.template.html'
}).done(function (template) {
xhr.onload = function (e) {
var template = this.response;
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
var dlg = document.createElement('paper-dialog');
@ -88,7 +87,9 @@
PaperDialogHelper.close(dlg);
});
});
});
}
xhr.send();
}
function onDialogClosed() {