From 2d143ab37542bda67cfe5d11a376ab3f8ca8b916 Mon Sep 17 00:00:00 2001 From: Triangle717 Date: Wed, 12 Feb 2014 18:54:23 -0500 Subject: [PATCH] Work around odd bug stopping the extension from working --- .gitignore | 2 ++ main.js | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f20d801..d5264be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.tmp *.bak +*.js +*.html Releases/ img/* !img/*.png diff --git a/main.js b/main.js index 022ffe2..bc7cebf 100644 --- a/main.js +++ b/main.js @@ -184,12 +184,12 @@ define(function (require, exports, module) { function _showSkellyDialog() { /* Display the HTML Skeleton box */ - var skellyDialog = Dialogs.showModalDialogUsingTemplate(skellyDialogHtml); - var $dlg = skellyDialog.getElement(); - var $doneButton = $dlg.find(".dialog-button[data-button-id='ok']"); + var skellyDialog = Dialogs.showModalDialogUsingTemplate(skellyDialogHtml), + $doneButton = skellyDialog.getElement().find('.dialog-button[data-button-id="ok"]'); // Bind the close button - $doneButton.on("click", skellyDialog.close.bind(skellyDialog)); + // FIXME Why does enabling this stop the extension from working? + //$doneButton.on("click", skellyDialog.close.bind(skellyDialog)); // Upon closing the dialog, run function to gather and apply choices $doneButton.on("click", _getOptions);