Fri, 25 Jul 2014 23:27:08 +0200
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | /***************************************************************************** |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | * Copyright (C) 2014 |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * Michiel Broek <mbroek at mbse dot eu> |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * This file is part of ThermFerm |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * This is free software; you can redistribute it and/or modify it |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * under the terms of the GNU General Public License as published by the |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * Free Software Foundation; either version 2, or (at your option) any |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * later version. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * ThermFerm is distributed in the hope that it will be useful, but |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * General Public License for more details. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | *****************************************************************************/ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | $(document).ready(function () { |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
24 | |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
25 | var data = {}; |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
26 | var theme = 'ui-redmond'; |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
27 | |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
28 | /* |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
29 | * 1-Wire bus |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
30 | */ |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
31 | var source_bus = { |
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | datatype: "json", |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | datafields: [ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | { name: 'Address', type: 'string' }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | { name: 'Refcnt', type: 'int' }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | { name: 'Chip', type: 'string' }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | { name: 'Description', type: 'string' } |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | ], |
129
2817c65fba89
Removed sorting of 1-Wire devices because the busy indicator doesn't dissapear
Michiel Broek <mbroek@mbse.eu>
parents:
127
diff
changeset
|
39 | url: 'getbus.php' |
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | }; |
129
2817c65fba89
Removed sorting of 1-Wire devices because the busy indicator doesn't dissapear
Michiel Broek <mbroek@mbse.eu>
parents:
127
diff
changeset
|
41 | var dataAdapter_bus = new $.jqx.dataAdapter(source_bus); |
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | $("#jqxgrid_bus").jqxGrid( { |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | width: 770, height: 280, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | source: dataAdapter_bus, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
45 | theme: theme, |
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | columnsresize: true, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | columns: [ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | { text: 'Address', datafield: 'Address', width: 150 }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | { text: 'References', datafield: 'Refcnt', width: 100 }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | { text: 'Chipset', datafield: 'Chip', width: 120 }, |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | { text: 'Description', datafield: 'Description', minwidth: 120 } |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | ] |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | }); |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
54 | |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
55 | /* |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
56 | * Profiles |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
57 | */ |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
58 | var source_profiles = { |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
59 | datatype: "json", |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
60 | datafields: [ |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
61 | { name: 'UUID', type: 'string' }, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
62 | { name: 'Name', type: 'string' }, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
63 | { name: 'Steps', type: 'int' } |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
64 | ], |
134
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
65 | id: 'UUID', |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
66 | url: 'getprofiles.php', |
134
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
67 | insertrow: function (rowid, commit) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
68 | var data = "insert=true&" + $.param({Name: rowid}); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
69 | $.ajax({ |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
70 | dataType: 'json', |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
71 | url: 'getprofiles.php', |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
72 | data: data, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
73 | cache: false, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
74 | success: function (data, status, xhr) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
75 | // insert command is executed. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
76 | commit(true); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
77 | }, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
78 | error: function(jqXHR, textStatus, errorThrown) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
79 | commit(false); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
80 | } |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
81 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
82 | }, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
83 | deleterow: function (rowid, commit) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
84 | var data = "delete=true&" + $.param({UUID: rowid}); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
85 | $.ajax({ |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
86 | dataType: 'json', |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
87 | url: 'getprofiles.php', |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
88 | data: data, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
89 | cache: false, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
90 | success: function (data, status, xhr) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
91 | // insert command is executed. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
92 | commit(true); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
93 | }, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
94 | error: function(jqXHR, textStatus, errorThrown) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
95 | commit(false); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
96 | } |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
97 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
98 | }, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
99 | updaterow: function (rowid, rowdata, commit) { |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
100 | // synchronize with the server - send update command |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
101 | var data = "update=true&UUID=" + rowdata.UUID + "&Name=" + rowdata.Name; |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
102 | $.ajax({ |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
103 | dataType: 'json', |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
104 | url: 'getprofiles.php', |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
105 | data: data, |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
106 | success: function (data, status, xhr) { |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
107 | // update command is executed. |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
108 | commit(true); |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
109 | }, |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
110 | error: function () { |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
111 | // cancel changes. |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
112 | commit(false); |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
113 | } |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
114 | }); |
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
115 | } |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
116 | }; |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
117 | var dataAdapter_profiles = new $.jqx.dataAdapter(source_profiles); |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
118 | $("#jqxgrid_profiles").jqxGrid( { |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
119 | width: 770, height: 280, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
120 | selectionmode: 'singlecell', |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
121 | source: dataAdapter_profiles, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
122 | theme: theme, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
123 | columnsresize: true, |
131
528dc0bb81ab
Always use uuid to select units and remove numeric record id's.
Michiel Broek <mbroek@mbse.eu>
parents:
130
diff
changeset
|
124 | editable: true, |
134
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
125 | showstatusbar: true, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
126 | renderstatusbar: function (statusbar) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
127 | // appends buttons to the status bar. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
128 | var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
129 | var addButton = $("<div style='float: left; margin-left: 5px;'><img style='position: relative; margin-top: 2px;' src='../images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Add</span></div>"); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
130 | var deleteButton = $("<div style='float: left; margin-left: 5px;'><img style='position: relative; margin-top: 2px;' src='../images/close.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Delete</span></div>"); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
131 | var reloadButton = $("<div style='float: left; margin-left: 5px;'><img style='position: relative; margin-top: 2px;' src='../images/refresh.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Reload</span></div>"); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
132 | container.append(addButton); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
133 | container.append(deleteButton); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
134 | container.append(reloadButton); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
135 | statusbar.append(container); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
136 | addButton.jqxButton({ width: 60, height: 20 }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
137 | deleteButton.jqxButton({ width: 65, height: 20 }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
138 | reloadButton.jqxButton({ width: 65, height: 20 }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
139 | // add new row. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
140 | addButton.click(function (event) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
141 | /* |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
142 | * Ask a new profile name using a popup window. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
143 | * Send "ADD PROFILE name" to the server using the getprofiles.php script. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
144 | * Refresh the data |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
145 | */ |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
146 | $("#jqxwindow_addprofile").jqxWindow('open'); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
147 | $("#jqxgrid_profiles").jqxGrid({ source: dataAdapter_profiles }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
148 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
149 | // delete selected row. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
150 | deleteButton.click(function (event) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
151 | var selectedrowindex = $("#jqxgrid_profiles").jqxGrid('getselectedrowindex'); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
152 | var rowscount = $("#jqxgrid_profiles").jqxGrid('getdatainformation').rowscount; |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
153 | var id = $("#jqxgrid_profiles").jqxGrid('getrowid', selectedrowindex); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
154 | $("#jqxgrid_profiles").jqxGrid('deleterow', id); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
155 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
156 | // reload grid data. |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
157 | reloadButton.click(function (event) { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
158 | $("#jqxgrid_profiles").jqxGrid({ source: dataAdapter_profiles }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
159 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
160 | }, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
161 | columns: [ |
131
528dc0bb81ab
Always use uuid to select units and remove numeric record id's.
Michiel Broek <mbroek@mbse.eu>
parents:
130
diff
changeset
|
162 | { text: 'UUID', editable: false, datafield: 'UUID', width: 280 }, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
163 | { text: 'Name', datafield: 'Name', minwidth: 120 }, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
164 | { text: 'Steps', editable: false, datafield: 'Steps', width: 50 } |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
165 | ] |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
166 | }); |
134
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
167 | $("#jqxwindow_addprofile").jqxWindow({ |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
168 | theme: theme, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
169 | resizable: false, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
170 | isModal: true, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
171 | modalOpacity: 0.5, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
172 | autoOpen: false, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
173 | width: 210, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
174 | height: 180, |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
175 | cancelButton: $("#profile_cancelButton"), |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
176 | initContent: function () { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
177 | $("#profile_addButton").jqxButton({ width: 70, height: 25, theme: theme }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
178 | $("#profile_cancelButton").jqxButton({ width: 70, height: 25, theme: theme }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
179 | $("#profile_addButton").click(function () { |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
180 | var id = $("#profile_inputField").val(); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
181 | $("#jqxgrid_profiles").jqxGrid('insertrow', id); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
182 | $("#jqxwindow_addprofile").jqxWindow('hide'); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
183 | }); |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
184 | } |
f05601490415
Redesigned the web interface, one single app is too slow. The main dashboard will be a shiny ajax driven page, the setup pages will be simple and php only. Keep It Simple, Stupid.
Michiel Broek <mbroek@mbse.eu>
parents:
132
diff
changeset
|
185 | }); |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
186 | |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
187 | /* |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
188 | * Units |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
189 | */ |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
190 | var source_units = { |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
191 | datatype: "json", |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
192 | datafields: [ |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
193 | { name: 'UUID', type: 'string' }, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
194 | { name: 'Name', type: 'string' }, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
195 | { name: 'Mode', type: 'string' } |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
196 | ], |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
197 | url: 'getunits.php' |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
198 | }; |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
199 | var dataAdapter_units = new $.jqx.dataAdapter(source_units); |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
200 | $("#jqxgrid_units").jqxGrid( { |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
201 | width: 770, height: 280, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
202 | source: dataAdapter_units, |
132
8bd209d1c020
Added some profile commands to the server. Profile names can be changed from the web interface. Removed obsolete commands.
Michiel Broek <mbroek@mbse.eu>
parents:
131
diff
changeset
|
203 | theme: theme, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
204 | columnsresize: true, |
131
528dc0bb81ab
Always use uuid to select units and remove numeric record id's.
Michiel Broek <mbroek@mbse.eu>
parents:
130
diff
changeset
|
205 | editable: true, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
206 | columns: [ |
131
528dc0bb81ab
Always use uuid to select units and remove numeric record id's.
Michiel Broek <mbroek@mbse.eu>
parents:
130
diff
changeset
|
207 | { text: 'UUID', editable: false, datafield: 'UUID', width: 280 }, |
130
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
208 | { text: 'Name', datafield: 'Name', minwidth: 120 }, |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
209 | { text: 'Mode', datafield: 'Mode', width: 70 } |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
210 | ] |
25158b08843f
Added maintenance tabs for units and profiles
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
211 | }); |
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
212 | }); |