$.each(this.options.recentFiles, function(index) {
if (fileId == self.options.recentFiles[index].fileId) {
$.log('Found options for', fileId);
$.each(this.options.recentFiles, function(index) {
if (fileId == self.options.recentFiles[index].fileId) {
$.log('Found options for', fileId);
self.showPopup('save-successful');
} else {
self.showPopup('save-warn', data.warnings[0]);
self.showPopup('save-successful');
} else {
self.showPopup('save-warn', data.warnings[0]);