Skip to content

Commit

Permalink
then to done replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalpospiech committed Jul 6, 2018
1 parent d122349 commit 66da0f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/yetiforce/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ window.rcmail && rcmail.addEventListener('init', function (evt) {
action: 'ImportICS',
ics: ics
}
}).then(function (response) {
}).done(function (response) {
window.crm.Vtiger_Helper_Js.showPnotify({
text: response['result'],
type: 'info',
Expand All @@ -33,7 +33,7 @@ function loadActionBar() {
folder: rcmail.env.mailbox,
rcId: rcmail.env.user_id
};
window.crm.AppConnector.request(params).then(function (response) {
window.crm.AppConnector.request(params).done(function (response) {
content.find('.ytHeader').html(response);
$('#messagecontent').css('top', (content.outerHeight() + $('#messageheader').outerHeight()) + 'px');
registerEvents(content);
Expand Down Expand Up @@ -78,7 +78,7 @@ function registerImportMail(content) {
folder: rcmail.env.mailbox,
rcId: rcmail.env.user_id
}
}).then(function (data) {
}).done(function (data) {
loadActionBar();
window.crm.Vtiger_Helper_Js.showPnotify({
text: window.crm.app.vtranslate('AddFindEmailInRecord'),
Expand Down Expand Up @@ -149,7 +149,7 @@ function removeRecord(crmid) {
}
params.async = false;
params.dataType = 'json';
window.crm.AppConnector.request(params).then(function (data) {
window.crm.AppConnector.request(params).done(function (data) {
var response = data['result'];
if (response['success']) {
var notifyParams = {
Expand Down Expand Up @@ -182,7 +182,7 @@ function showPopup(params, actionsParams) {
mode: 'addRelated',
params: actionsParams
}
}).then(function (data) {
}).done(function (data) {
let response = data['result'];
if (response['success']) {
var notifyParams = {
Expand Down

0 comments on commit 66da0f7

Please sign in to comment.