minor cleanup and fixes

merge-requests/98/head
Moe 2019-08-12 15:23:11 -07:00
parent bdaff16329
commit 55b8aafb0f
4 changed files with 13 additions and 3 deletions

View File

@ -70,6 +70,7 @@
"Motion Detection": "Motion Detection",
"Object Detection": "Object Detection",
"JPEG Mode": "JPEG Mode",
"Reconnect Stream": "Reconnect Stream",
"Order Streams": "Order Streams",
"Hide Notes": "Hide Notes",
"Example": "Example",
@ -742,6 +743,7 @@
"Downloading Videos": "Downloading Videos",
"Zipping Videos": "Zipping Videos",
"Success": "Success",
"Search Settings": "Search Settings",
"Trigger Successful": "Trigger Successful",
"Trigger Blocked": "Trigger Blocked",
"No such file": "No such file",

View File

@ -22,6 +22,14 @@ $(document).ready(function(){
createButton(x,0,e)
}
}
$.confirm.create = function(options){
if(options.title && options.body){
$.confirm.e.modal('show')
$.confirm.title.text(options.title)
$.confirm.body.html(options.body)
}
if(options.clickOptions && options.clickCallback)$.confirm.click(options.clickOptions,options.clickCallback)
}
$.confirm.e.on('hidden.bs.modal', function () {
$.confirm.footer.find('.confirmaction').remove()
})

View File

@ -111,8 +111,8 @@ $.ccio.tm=function(x,d,z,user){
"class": "default arrows",
"icon": "arrows"
},
"Status Indicator": {
"label": lang['Status Indicator'],
"Reconnect Stream": {
"label": lang['Reconnect Stream'],
"attr": "monitor=\"watch_on\"",
"class": "success signal",
"icon": "plug"

View File

@ -18,7 +18,7 @@
<button type="button" class="btn btn-primary btn-sm" tab-chooser="settings"><%- lang['Search Settings'] %></button>
</div>
</div>
<div class="form-group-group grey" tab-section="monitors" style="max-height:265px">
<div class="form-group-group grey" tab-section="monitors" style="max-height:265px;overflow:auto;">
<h4><%-lang.Monitors%></h4>
<div id="powerVideoMonitorsList" class="list-group"></div>
</div>