rpi specific options are now hidden
authorCalin Crisan <ccrisan@gmail.com>
Sat, 5 Oct 2013 15:06:41 +0000 (18:06 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 5 Oct 2013 15:07:02 +0000 (18:07 +0300)
doc/todo.txt
static/css/main.css
static/js/main.js
templates/main.html

index 7c4343bc4f6f600a5f85155feb4684d1831385b3..e243170b5a9cd7ece4bb3e090b944303b4b8d6aa 100644 (file)
@@ -1,7 +1,6 @@
 -> make camera frames positions configurable
 -> hide horrible 404 image on cameras
 -> prevent Request closed errors by stopping mjpg clients before stopping motion
--> network server storage should only be enabled on special devices (rpi)
 -> camera not available background and icon design
 -> remove current snapshot GET logs
 -> add a motion running status indicator (and maybe a start/stop button)
@@ -22,3 +21,4 @@
 -> add a motioneye.svg icon
 -> other todos
 -> add a messaging mechanism
+-> add other options applicable only to special devices (rpi): wifi settings, notifications
\ No newline at end of file
index 740e6416f7df7319a621a5681e7b0cb997d3e944..126be741c5bd7f9640f7c7f3e8b0dc1c740de0e7 100644 (file)
@@ -286,6 +286,11 @@ input[type=text].working-schedule.number {
     width: 50px;
 }
 
+div.rpi,
+tr.rpi {
+    display: none;
+}
+
 
     /* dialogs */
 
index d1e641675942896e42166e8fe7423d682b6bf105..bea6c3df650ad2000c72a1016146cf2cc17d77f9 100644 (file)
@@ -302,7 +302,7 @@ function isSettingsOpen() {
 }
 
 function updateConfigUi() {
-    var objs = $('tr.settings-item, div.advanced-setting, table.advanced-setting, div.settings-section-title, table.settings');
+    var objs = $('tr.settings-item, div.advanced-setting, table.advanced-setting, div.settings-section-title, table.settings').not('.rpi');
     
     function markHide() {
         this._hide = true;
index 01d24f9f08e056890b462a63b57902e6f508cc38..21e7f56ff98b4b220233d5e390dfc584bc8b9a27 100644 (file)
                 
                 <div class="settings-section-title advanced-setting">File Storage</div>
                 <table class="settings advanced-setting">
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Storage Device</span></td>
                         <td class="settings-item-value">
                             <select class="styled storage" id="storageDeviceSelect">
                         </td>
                         <td><span class="help-mark" title="indicates the storage device where the image and video files will be saved">?</span></td>
                     </tr>
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Network Server</span></td>
                         <td class="settings-item-value"><input type="text" class="styled storage" id="networkServerEntry"></td>
                         <td><span class="help-mark" title="the address of the network server (IP address or hostname)">?</span></td>
                     </tr>
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Share Name</span></td>
                         <td class="settings-item-value"><input type="text" class="styled storage" id="networkShareNameEntry"></td>
                         <td><span class="help-mark" title="the name of the network share">?</span></td>
                     </tr>
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Share Username</span></td>
                         <td class="settings-item-value"><input type="text" class="styled storage" id="networkUsernameEntry"></td>
                         <td><span class="help-mark" title="the username to be supplied when accessing the network share (leave empty if no username is required)">?</span></td>
                     </tr>
-                    <tr class="settings-item advanced-setting">
+                    <tr class="settings-item advanced-setting rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Share Password</span></td>
                         <td class="settings-item-value"><input type="password" class="styled storage" id="networkPasswordEntry"></td>
                         <td><span class="help-mark" title="the password required by the network share (leave empty if no password is required)">?</span></td>
                     </tr>
                 </table>
                 
-                <div class="settings-section-title"><input type="checkbox" class="styled section notifications" id="motionNotificationsSwitch">Motion Notifications</div>
+                <div class="settings-section-title rpi"><input type="checkbox" class="styled section notifications" id="motionNotificationsSwitch">Motion Notifications</div>
                 <table class="settings">
-                    <tr class="settings-item">
+                    <tr class="settings-item rpi">
                         <td class="settings-item-label"><span class="settings-item-label">Email Addresses</span></td>
                         <td class="settings-item-value"><input type="text" class="styled notifications" id="emailAddressesEntry" placeholder="email addresses..."></td>
                         <td><span class="help-mark" title="email addresses (separated by comma) that are added here will receive notifications whenever a motion event is detected (leave empty to disable email notifications)">?</span></td>