Commit 03600516 by Teeradone-PIM

teeradone edit

parent 6c193d1b
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
'id' => 'master_country_id', 'id' => 'master_country_id',
'label' => false, 'label' => false,
'type' => 'select', 'type' => 'select',
'require'=>'require',
'options' => $Country, 'options' => $Country,
'value' => $responseUserPersonal['master_country_id'], 'value' => $responseUserPersonal['master_country_id'],
'empty' => '---Select---', 'empty' => '---Select---',
...@@ -158,6 +159,7 @@ ...@@ -158,6 +159,7 @@
'id' => 'master_province_id', 'id' => 'master_province_id',
'label' => false, 'label' => false,
'type' => 'select', 'type' => 'select',
'require'=>'require',
'options' => $Province, 'options' => $Province,
'value' => $responseUserPersonal['master_province_id'], 'value' => $responseUserPersonal['master_province_id'],
'empty' => '---Select---', 'empty' => '---Select---',
...@@ -270,6 +272,16 @@ ...@@ -270,6 +272,16 @@
// return false; // return false;
// } // }
// }); // });
var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") {
alert("กรุณาระบุประเทศ");
return false;
}
var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") {
alert("กรุณาระบุจังหวัด");
return false;
}
$("body").delegate(".is_active", "click", function () { $("body").delegate(".is_active", "click", function () {
$('.is_active').not(this).prop('checked', false); $('.is_active').not(this).prop('checked', false);
......
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 sign in to comment