fix #2237 (Issue with previous/next result buttons in player/editor)

This commit is contained in:
rolux 2014-02-08 17:15:21 +00:00
parent 45c5641665
commit e1ee8fdd2e
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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