Commit b22c78c4 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 30d55791
......@@ -653,6 +653,14 @@ class tx_nG6_db {
if ($res1 != 1) {$res = 1;}
}
// Delete right associated to the project
if ($res == 0) {
$table='fe_rights';
$where='fe_rights.project_id='.$p_id;
$res1 = $GLOBALS['TYPO3_DB']-> exec_DELETEquery ($table, $where);
if ($res1 != 1) {$res = 1;}
}
return $res;
}
......
......@@ -75,8 +75,7 @@ $(function () {
// Grab relevant info from URL fragment
var params = simpleQueryParams(location.href),
active_tab = params["active_tab"],
page_id = params["id"];
active_tab = params["active_tab"];
if (active_tab == "users") {
$('#myTab a[href="#users"]').tab('show');
......@@ -975,6 +974,10 @@ function addRunHandler() {
});
});
$('#selectedWfForm').on('run', function(event, running_wf) {
var params = simpleQueryParams(location.href),
page_id = params["id"];
$("#reset_workflow").hide();
$("#run_workflow").hide();
$("#back_to_workflows_list").hide();
......@@ -1020,6 +1023,10 @@ function addProjectHandler(){
$('#setAndRunModalLabel').html("Loading");
$("#reset_workflow").hide();
$("#run_workflow").hide();
var params = simpleQueryParams(location.href),
page_id = params["id"];
if ($("#close").size() == 0) {
$('<button id="close" class="btn" data-dismiss="modal"><i class="icon-remove"></i> Close</button>').insertBefore("#reset_workflow");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment