fix bug nhỏ
This commit is contained in:
parent
2b88dbb695
commit
758b8d29c3
|
@ -282,7 +282,11 @@ class DeviceController extends Controller {
|
|||
public function actionSearch() {
|
||||
if (Yii::$app->request->post()) {
|
||||
Yii::$app->response->format = "json";
|
||||
$datas = json_decode(common::requestToCardService("/SearchDevice", ["NetMask" => Yii::$app->request->post("SubnetMask")]), true);
|
||||
$NetMask = "255.255.255.255";
|
||||
if (Yii::$app->request->post("SubnetMask") != "") {
|
||||
$NetMask = Yii::$app->request->post("SubnetMask");
|
||||
}
|
||||
$datas = json_decode(common::requestToCardService("/SearchDevice", ["NetMask" => $NetMask]), true);
|
||||
return [
|
||||
"form" => $this->renderPartial("device-lists", [
|
||||
"datas" => $datas,
|
||||
|
|
|
@ -2,6 +2,7 @@ $(function () {
|
|||
$('[data-toggle="tooltip"]').tooltip({
|
||||
container: 'body'
|
||||
});
|
||||
$.fn.modal.Constructor.prototype.enforceFocus = $.noop;
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user