From eec35c1eece82ceea97871dc9532cd7a589c10f9 Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 8 Jan 2016 09:11:55 +0530 Subject: [PATCH] update app menu --- config.json | 4 ++-- static/js/mainMenu.js | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index b2091ef..ff32359 100644 --- a/config.json +++ b/config.json @@ -264,11 +264,11 @@ {"id": "welcome", "title": "Welcome"}, {"id": "app", "title": "Application", "parts": [ {"id": "about", "title": "About Open Media Library"}, + {"id": "update", "title": "Software Update"}, {"id": "faq", "title": "Frequently Asked Questions"}, {"id": "terms", "title": "Terms and Conditions"}, {"id": "development", "title": "Software Development"}, - {"id": "contact", "title": "Send Feedback"}, - {"id": "update", "title": "Software Update"} + {"id": "contact", "title": "Send Feedback"} ]}, {"id": "preferences", "title": "Preferences", "parts": [ {"id": "account", "title": "Account"}, diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index c851525..d9a9f8a 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -19,13 +19,17 @@ oml.ui.mainMenu = function() { id: 'appMenu', title: '', items: [ - appItems[0], + appItems.slice(0, 2), {} ].concat( - appItems.slice(1, -1) + appItems.slice(2) ).concat([ {}, - Ox.last(appItems) + { + id: 'quit', + title: Ox._('Quit Open Media Library'), + keyboard: 'control q' + } ]) }, {