From 1366f359c96cb43a688cd9e01b2f89032c33f38d Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 2 Aug 2017 15:35:03 +0200 Subject: [PATCH] fix gist publish alert --- src/app.js | 2 +- src/app/files-tab.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.js b/src/app.js index 0084266771..5063808636 100644 --- a/src/app.js +++ b/src/app.js @@ -1,4 +1,4 @@ -/* global confirm, prompt, Option, Worker, chrome */ +/* global confirm, Option, Worker, chrome */ 'use strict' var async = require('async') diff --git a/src/app/files-tab.js b/src/app/files-tab.js index f23befcc0a..2b0c993f19 100644 --- a/src/app/files-tab.js +++ b/src/app/files-tab.js @@ -1,6 +1,7 @@ -/* global alert, confirm, prompt */ +/* global confirm, prompt */ var yo = require('yo-yo') var $ = require('jquery') +var modalDialogCustom = require('./modal-dialog-custom') var QueryParams = require('./query-params') var queryParams = new QueryParams() @@ -70,7 +71,7 @@ function filesTab (container, appAPI, events, opts) { } }).fail(function (xhr, text, err) { console.log('fail', text) - alert('Failed to create gist: ' + (err || 'Unknown transport error')) + modalDialogCustom.alert('Failed to create gist: ' + (err || 'Unknown transport error')) }) } })