From e1ee8fdd2e657bfd38b9b8be0f477e5259b01c48 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 8 Feb 2014 17:15:21 +0000 Subject: [PATCH] fix #2237 (Issue with previous/next result buttons in player/editor) --- source/Ox.UI/js/Video/VideoAnnotationPanel.js | 4 ++-- source/Ox.UI/js/Video/VideoPlayer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoAnnotationPanel.js b/source/Ox.UI/js/Video/VideoAnnotationPanel.js index 79d4443a..900e9477 100644 --- a/source/Ox.UI/js/Video/VideoAnnotationPanel.js +++ b/source/Ox.UI/js/Video/VideoAnnotationPanel.js @@ -1394,10 +1394,10 @@ Ox.VideoAnnotationPanel = function(options, self) { .css({opacity: self.results.length ? 1 : 0.25}) .html(self.results.length); self.$previousButton.options({ - disabled: self.results.length <= 1 + disabled: !self.results.length }); self.$nextButton.options({ - disabled: self.results.length <= 1 + disabled: !self.results.length }); self.$clearButton.options({ disabled: !self.options.find diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index c9abb306..2d09e272 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -2401,10 +2401,10 @@ Ox.VideoPlayer = function(options, self) { if (self.$find) { self.$results.html(self.results.length); self.$previousResultButton.options({ - disabled: self.results.length <= 1 + disabled: !self.results.length }); self.$nextResultButton.options({ - disabled: self.results.length <= 1 + disabled: !self.results.length }); self.$clearButton.options({ disabled: !self.options.find