From eb87f56edea8beee84080b41168c2b07fe953641 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 13 Jan 2016 13:54:44 +0530 Subject: [PATCH] update welcome dialog --- static/js/appPanel.js | 1 + static/js/welcomeDialog.js | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/static/js/appPanel.js b/static/js/appPanel.js index a0c4d73..1c0a5e4 100644 --- a/static/js/appPanel.js +++ b/static/js/appPanel.js @@ -26,6 +26,7 @@ oml.ui.appPanel = function() { function setPage(page, previousPage) { var dialogs = { + welcomeDialog: ['welcome'], appDialog: ['about', 'faq', 'terms', 'development', 'contact'], updateDialog: ['update'], userDialog: ['preferences', 'peers', 'transfers'], diff --git a/static/js/welcomeDialog.js b/static/js/welcomeDialog.js index 9ca168b..170a8ac 100644 --- a/static/js/welcomeDialog.js +++ b/static/js/welcomeDialog.js @@ -4,6 +4,17 @@ oml.ui.welcomeDialog = function() { var that = oml.ui.iconDialog({ buttons: [ + Ox.Button({ + id: 'preferences', + style: 'squared', + title: Ox._('Preferences...') + }) + .bindEvent({ + click: function() { + oml.UI.set({page: 'preferences'}); + } + }), + {}, Ox.Button({ id: 'close', style: 'squared',