Project

General

Profile

« Previous | Next » 

Revision 39916

added a refresh button

View differences:

modules/dnet-modular-workflows-ui/branches/workflow_templates/src/main/resources/eu/dnetlib/functionality/modular/workflows/xslt/wf_profile2html.xslt
19 19
        <div ng-init="currentProc = {{}}">
20 20
            <wf-proc-modal proc="currentProc"/>
21 21

  
22

  
23 22
            <div>
24

  
25
                <!-- Nav tabs -->
26 23
                <ul class="nav nav-tabs">
27 24
                    <li class="active" style="cursor: pointer">
28 25
                        <a data-target="#tabInfo" data-toggle="tab">Workflow Info</a>
......
77 74
                                        <span style="margin-right: 8px" class="glyphicon glyphicon-play"></span>
78 75
                                        Launch
79 76
                                    </button>
77
                                    <button type="button" class="btn btn-default" ng-click="refresh()" style="margin-left: 5px;">
78
                                        <span class="glyphicon glyphicon-refresh"></span>
79
                                    </button>
80 80
                                </div>
81 81
                            </div>
82 82
                        </form>
modules/dnet-modular-workflows-ui/branches/workflow_templates/src/main/resources/eu/dnetlib/web/resources/js/dnet_workflows_controllers.js
1 1
var dnetWorkflowsControllers = angular.module('dnetWorkflowsControllers', ['ngGrid']);
2 2

  
3 3
dnetWorkflowsControllers.controller('workflowCtrl', [
4
	'$scope', '$http', '$sce', '$location', '$routeParams', 'sharedProperties',
5
	function ($scope, $http, $sce, $location, $routeParams, sharedProperties) {
4
	'$scope', '$http', '$sce', '$location', '$route', '$routeParams', 'sharedProperties',
5
	function ($scope, $http, $sce, $location, $route, $routeParams, sharedProperties) {
6 6
		sharedProperties.setCurrentSection($routeParams.section);
7 7
		sharedProperties.setCurrentWorkflowId($routeParams.wf);
8 8

  
......
31 31
			});
32 32
		};
33 33

  
34
		$scope.refresh = function () {
35
			$route.reload();
36
		};
37

  
34 38
		$scope.updateHistory = function (wfId) {
35 39
			$http.get('wf_journal.find?wfs=' + wfId).success(function (data) {
36 40
				$scope.history = data;

Also available in: Unified diff