2 * Copyright (c) 2013, Intel Corporation.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
12 function connected() {
13 console.log('Settings daemon connected');
16 function disconnected(e) {
17 console.log('Settings daemon disconnected...');
22 console.log('Settings init...');
23 $('#quit').on('click', function() {
24 console.log('Settings exiting...');
25 tizen.application.getCurrentApplication().exit();
28 wsAPI.connect('ws://localhost:16000/', 'http-only', connected, disconnected);
32 $('#main').on('pageshow', function(event, data) {
33 /* TODO: unsubscribe events if neccessary */
34 if (data.prevPage.attr('id') === 'page_bluetooth') console.log('Bluetooth settings exited');
37 /* Different sub panels */
40 showMsg('Error', 'Javascript Exception Caught: ' + e);
44 $(document).ready(function() {