mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-25 07:48:26 -04:00
Appease eslint
This commit is contained in:
1 parent
95d2e0a27c
commit
be202719c3
2 files changed
+4
-3
No files matched your search
@@ -618,9 +618,10 @@ function scaleToFit(baseWidth, baseHeight, scaleEl, bottomEl, container) {
|
||||
padding = parseInt(container.css("padding-left")) + parseInt(container.css("padding-right"));
|
||||
newWidth -= padding;
|
||||
newHeight = newWidth / ratio;
|
||||
|
||||
console.log("newWidth = ", newWidth, "container width:", container.innerWidth()-padding);
|
||||
|
||||
if (newHeight < 0 || newWidth > container.innerWidth()-padding){
|
||||
if (newHeight < 0 || newWidth > container.innerWidth()-padding) {
|
||||
// Doesn't fit on screen anyways?
|
||||
newWidth = container.innerWidth()-padding;
|
||||
newHeight = newWidth / ratio;
|
||||
|
||||
@@ -1084,8 +1084,8 @@ function getObjdetectModal(eid) {
|
||||
});
|
||||
}
|
||||
|
||||
function changeObjectClass() {
|
||||
if (sidebarView.is(":visible") && sidebarControls.is(":visible")) { //LEFT + RIGHT
|
||||
function changeObjectClass() {
|
||||
if (sidebarView.is(":visible") && sidebarControls.is(":visible")) { //LEFT + RIGHT
|
||||
sidebarView.removeClass(classSidebarL).addClass(classSidebarL);
|
||||
sidebarControls.removeClass(classSidebarR).addClass(classSidebarR);
|
||||
wrapperMonitor.removeClass(classMonitorW_SB_LR).removeClass(classMonitorW_SB_L).removeClass(classMonitorW_SB_R).removeClass(classMonitorWO_SB).addClass(classMonitorW_SB_LR);
|
||||
|
||||
Reference in new issue
Block a user