summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-07-26 18:28:46 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-07-26 18:28:46 -0400
commit628e4f52203f2d6f8202515207b4801efec8e301 (patch)
tree4ca0f0a2282cbc38572a5a875770db240cd6c2de /www/js/EventCtrl.js
parentb9e6ca93bc1e805e07edddd90f21f24eb8678287 (diff)
reduce image loading buffer of carousel (for low config devices) also made sure scrub carousel is cleared if full screen is opened so as not to double images
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 1f535507..93fdba0e 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -226,7 +226,12 @@ angular.module('zmApp.controllers')
// This function is called when a user enables or disables
// scrub view for an event.
//-------------------------------------------------------------------------
- $scope.toggleGroup = function (event, ndx, frames) {
+
+ $scope.toggleGroup = function(event,ndx,frames)
+ {
+ toggleGroup(event, ndx, frames);
+ };
+ function toggleGroup(event, ndx, frames) {
// If we are here and there is a record of a previous scroll
// then we need to scroll back to hide that view
@@ -357,8 +362,17 @@ angular.module('zmApp.controllers')
// we are turning off, so scroll by back
}
- };
+ }
+ $scope.closeIfOpen = function(event)
+ {
+ if (event != undefined)
+ {
+ if (event.Event.ShowScrub)
+ toggleGroup(event);
+
+ }
+ };
$scope.isGroupShown = function (event) {
// console.log ("IS SHOW INDEX is " + ndx);