summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-08 12:37:03 -0500
committerJules Laplace <jules@okfoc.us>2016-11-08 12:37:03 -0500
commitef4f212fc1482136dba1e690ec589b315b4a377f (patch)
tree0b7e16d72567fafcfd3e08d7c5c591ad07a63458 /StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js
parent5fa81da81260d65113f57a293b6256d334fe8e2d (diff)
build 0.7.0
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js')
-rw-r--r--[-rwxr-xr-x]StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js b/StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js
index b6986fd0..aea562d0 100755..100644
--- a/StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js
+++ b/StoneIsland/plugins/cordova-plugin-dialogs/src/firefoxos/notification.js
@@ -60,7 +60,8 @@ function modal(message, callback, title, buttonLabels, domObjects) {
var menu = modalDocument.createElement('menu');
box.appendChild(menu);
for (var index = 0; index < buttonLabels.length; index++) {
- addButton(buttonLabels[index], index, (index === 0));
+ // TODO: last button listens to the cancel key
+ addButton(buttonLabels[index], (index+1), (index === 0));
}
modalDocument.body.appendChild(box);
@@ -83,12 +84,12 @@ function modal(message, callback, title, buttonLabels, domObjects) {
result = {
input1: '',
buttonIndex: 0
- }
+ };
}
mainWindow.setTimeout(function() {
callback(result);
}, 10);
- };
+ }
modalWindow.addEventListener('unload', onUnload, false);
// call callback and destroy modal
@@ -109,7 +110,7 @@ function modal(message, callback, title, buttonLabels, domObjects) {
}
response = response || labelIndex;
callback(response);
- }
+ };
}
}