Skip to content

Commit e35b057

Browse files
authored
Removed extra code intended for the new Montage page ZoneMinder#4140 (skin.js)
And add missing space
1 parent d9d8288 commit e35b057

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

web/skins/classic/js/skin.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,15 +1466,6 @@ function managePanZoomButton(evt) {
14661466

14671467
if (obj.className.includes('btn-view-watch')) {
14681468
url = '?view=watch&mid='+monitorId_;
1469-
} else if (obj.className.includes('btn-view-event')) {
1470-
const eventInfo = getEventInfoFromEventsTable({what: 'current', mid: monitorId_});
1471-
const fid = frameCalculationByTime(
1472-
timeline.getCurrentTime(),
1473-
eventInfo.start,
1474-
eventInfo.end,
1475-
eventInfo.frames,
1476-
);
1477-
url = '?view=event&eid='+eventInfo.eventId+'&fid='+fid;
14781469
} else if (obj.className.includes('btn-edit-monitor')) {
14791470
url = '?view=monitor&mid='+monitorId_;
14801471
} else if (obj.className.includes('btn-fullscreen')) {
@@ -1513,7 +1504,7 @@ function initPageGeneral() {
15131504
});
15141505

15151506
// Support for touch devices.
1516-
"touchstart touchend touchcancel touchmove".split(" ").forEach(function(action){
1507+
"touchstart touchend touchcancel touchmove".split(" ").forEach(function(action) {
15171508
document.addEventListener(action, function(event) {
15181509
handleTouchActionGeneral(action, event);
15191510
}, {passive: false}); // false - to avoid an error "Unable to preventDefault inside passive event listener due to target being treated as passive."

0 commit comments

Comments
 (0)