From 676fdff4e78bcf33eb4f8c488d8995fcf9f75f65 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 16 May 2016 23:16:34 -0400 Subject: [PATCH] webstaff: audio disable and testing options For workstation admin UI. Signed-off-by: Bill Erickson --- .../staff/admin/workstation/t_splash.tt2 | 24 +++++++++++++++++++ .../ui/default/staff/admin/workstation/app.js | 17 +++++++++++++ 2 files changed, 41 insertions(+) diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 index 8ceb795857..360f6d7e2a 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 @@ -91,6 +91,30 @@ +
+
+
+ +
+
+
+ Test: + + + + +
+
+
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 4924f9da18..d31c5fd8a8 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -172,6 +172,23 @@ function($scope , $window , $location , egCore , egConfirmDialog) { egCore.hatch.setLocalItem( 'eg.hatch.url', $scope.hatchURL); } + + egCore.hatch.getItem('eg.audio.disable').then(function(val) { + $scope.disable_sound = val; + }); + + $scope.apply_sound = function() { + if ($scope.disable_sound) { + egCore.hatch.setItem('eg.audio.disable', true); + } else { + egCore.hatch.removeItem('eg.audio.disable'); + } + } + + $scope.test_audio = function(sound) { + egCore.audio.play(sound); + } + }]) .controller('PrintConfigCtrl', -- 2.43.2