$conferences = $shout->storage->getConferences($curaccount);
$soundfiles = $shout->getRecordings();
} catch (Exception $e) {
- $notification->push(_("Problem getting destination information."));
+ Horde::logMessage($e, 'ERR');
+ $notification->push(_("Problem getting menu information."));
}
break;
$shout = $GLOBALS['registry']->getApiInstance('shout', 'application');
$account = $_SESSION['shout']['curaccount'];
$menus = $shout->storage->getMenus($account);
+ if (empty($menus)) {
+ return false;
+ }
foreach ($menus as $menu => $info) {
// Fill in the actions for each menu
$menus[$menu]['actions'] = $shout->dialplan->getMenuActions($account, $menu);
{
$('menuWorking').show();
$('dialpadWorking').show();
- curmenu = $('menu.select').value;
- if (!curmenu || !menuInfo.get(curmenu)) {
- // TODO Show an error of some kind
- return false;
- }
$A(['1','2','3','4','5','6','7','8','9','0','star','octo']).each(function (digit){
empty('digit_' + digit);
$('digit_' + digit).appendChild(span);
})
+ if (!(menuInfo.size())) {
+ $('menuWorking').hide();
+ $('dialpadWorking').hide();
+ return true;
+ }
+
+ curmenu = $('menu.select').value;
+
var text = document.createTextNode(menuInfo.get(curmenu).description);
empty('menu.description');
$('menu.description').appendChild(text);