diff --git a/app/View/Elements/host_browser_menu.ctp b/app/View/Elements/host_browser_menu.ctp index 7e5f13d9e7..dd30de1f29 100644 --- a/app/View/Elements/host_browser_menu.ctp +++ b/app/View/Elements/host_browser_menu.ctp @@ -24,9 +24,12 @@ // confirmation. ?> - +request->params['action'] == 'browser' && $this->request->params['controller'] == 'hosts'): ?> + + + + Acl->hasPermission('view', 'documentations') && $host['Host']['host_type'] == GENERIC_HOST): ?> - +request->params['action'] == 'browser' && $this->request->params['controller'] == 'services'): ?> + + + + Acl->hasPermission('view', 'documentations') && $service['Service']['service_type'] == GENERIC_SERVICE): ?> - + Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?> + + + + @@ -599,44 +603,6 @@ - - - - - - - × - - - - - - - Form->create('nag_command', [ - 'class' => 'form-horizontal clear', - ]); ?> - Form->input('satellite_id', ['type' => 'hidden', 'value' => $service['Host']['satellite_id']]); ?> - - - - - - - - Form->end(); ?> - - - - diff --git a/app/webroot/js/app/controllers/services/browser_controller.js b/app/webroot/js/app/controllers/services/browser_controller.js index b7f727fdc3..a8c19437b9 100644 --- a/app/webroot/js/app/controllers/services/browser_controller.js +++ b/app/webroot/js/app/controllers/services/browser_controller.js @@ -50,7 +50,7 @@ App.Controllers.ServicesBrowserController = Frontend.AppController.extend({ /* * Binding click events */ - $('#submitRescheduleService').click(function(){ + $('.submitRescheduleService').click(function(){ self.WebsocketSudo.send(self.WebsocketSudo.toJson('rescheduleService', [self.host_uuid, self.service_uuid, $('#nag_commandSatelliteId').val()])); self.Externalcommand.refresh(); });