This commit is contained in:
liumengyi
2023-03-29 13:36:16 +08:00
parent 64ccf3e306
commit eb182b1874
6 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -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;}
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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()));
}
}
-1
View File
@@ -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;}
+5
View File
@@ -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);
}
+1 -1
View File
@@ -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'>