* Fix bug #33461.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
.modal-dialog {width: 75%;}
|
||||
form {margin-bottom: 100px; padding-left: 65px;}
|
||||
form {margin-bottom: 100px;}
|
||||
table {width: 90% !important;}
|
||||
#whiteListBox div.input-group {margin-bottom: 2px;}
|
||||
#whiteListBox .input-group:last-child {margin-top: 10px;}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center form-actions' colspan='2'><?php echo html::submitButton();?></td>
|
||||
<td class='text-center form-actions' colspan='3'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -137,11 +137,11 @@ class doc extends control
|
||||
$this->action->create('docLib', $libID, 'Created');
|
||||
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $libID));
|
||||
return print(js::locate($this->createLink('doc', 'tableContents', "type=$type&objectID=$objectID&libID=$libID"), 'parent.parent'));
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.locateNewLib(\"$type\", \"$objectID\", \"$libID\")"));
|
||||
}
|
||||
else
|
||||
{
|
||||
echo js::error(dao::getError());
|
||||
return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,5 +3,4 @@ form {margin-right: 30px;}
|
||||
#whiteListBox div.input-group {margin-bottom: 2px;}
|
||||
#whiteListBox .input-group:last-child {margin-top: 10px;}
|
||||
|
||||
.center-block {margin-top: 20px;}
|
||||
#groups_chosen.chosen-container .chosen-results, #users_chosen.chosen-container .chosen-results {max-height: 160px;}
|
||||
|
||||
@@ -311,3 +311,8 @@ $(document).ready(function()
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
function locateNewLib(type, objectID, libID)
|
||||
{
|
||||
location.href = createLink('doc', 'tableContents', 'type=' + type + '&objectID=' + objectID + '&libID=' + libID);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class='main-header'>
|
||||
<h2><?php echo $lang->doc->createLib;?></h2>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin' class='no-stash'>
|
||||
<form method='post' class='main-form form-ajax no-stash' enctype='multipart/form-data' >
|
||||
<table class='table table-form'>
|
||||
<?php if(in_array($type, array('product', 'project', 'execution'))):?>
|
||||
<tr class='objectBox'>
|
||||
|
||||
Reference in New Issue
Block a user