From cfa9424782e69edee52817f67c0f511ba7d2d681 Mon Sep 17 00:00:00 2001 From: Terrence Ryan Date: Fri, 8 Nov 2013 15:28:41 -0500 Subject: [PATCH] Tweaking popovers so you can delete them by clicking. Also cleaning up some method names. --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 9ec7bb0..65413cc 100644 --- a/main.js +++ b/main.js @@ -42,7 +42,7 @@ define(function (require, exports, module) { ProjectListPanelTemplate = require("text!templates/project-panel-list.html"), LoginTemplate = require("text!templates/login.html"); - //LoginTemplate = require("text!templates/hardcodedlogin.html") + LoginTemplate = require("text!templates/hardcodedlogin.html") var CommandManager = brackets.getModule("command/CommandManager"), ProjectManager = brackets.getModule("project/ProjectManager"), @@ -298,7 +298,7 @@ define(function (require, exports, module) { animation : true, html : true, placement : "left", - trigger : "manual", + trigger : "click", content : message }; @@ -561,9 +561,9 @@ define(function (require, exports, module) { showAlert(Strings.PROJECT_NOT_LINKED_MESSAGE + Strings.LINK_PROJECT_MENU_ITEM, false, null, false); return; } - Dialogs.showModalDialog(Dialogs.DIALOG_ID_ERROR, Strings.SEND_FILES_MENU_ENTRY, Strings.UPLOAD_CONFIRMATION_MESSAGE).done(eve.f("pgb.alert.bundle.ok")); + Dialogs.showModalDialog(Dialogs.DIALOG_ID_ERROR, Strings.SEND_FILES_MENU_ENTRY, Strings.UPLOAD_CONFIRMATION_MESSAGE).done(eve.f("pgb.alert.bundle")); }); - eve.on("pgb.alert.bundle.ok", function(action) { + eve.on("pgb.alert.bundle", function(action) { if (action === Dialogs.DIALOG_BTN_CANCEL) { // NO-OP. Probably don't have to do anything. }