Add ajax for type on edit mode
This commit is contained in:
parent
fafebf5b2a
commit
42e43791ef
@ -251,11 +251,9 @@ if ($action == 'create')
|
|||||||
document.formsoc.action.value="create";
|
document.formsoc.action.value="create";
|
||||||
document.formsoc.submit();
|
document.formsoc.submit();
|
||||||
});
|
});
|
||||||
})';
|
})'."\n";
|
||||||
print '</script>'."\n";
|
|
||||||
|
|
||||||
print "\n".'<script type="text/javascript" language="javascript">';
|
print 'jQuery(document).ready(function () {
|
||||||
print 'jQuery(document).ready(function () {
|
|
||||||
jQuery("#selectaccount_country_id").change(function() {
|
jQuery("#selectaccount_country_id").change(function() {
|
||||||
document.formsoc.action.value="create";
|
document.formsoc.action.value="create";
|
||||||
document.formsoc.submit();
|
document.formsoc.submit();
|
||||||
@ -780,6 +778,13 @@ else
|
|||||||
{
|
{
|
||||||
print "\n".'<script type="text/javascript" language="javascript">';
|
print "\n".'<script type="text/javascript" language="javascript">';
|
||||||
print 'jQuery(document).ready(function () {
|
print 'jQuery(document).ready(function () {
|
||||||
|
jQuery("#selecttype").change(function() {
|
||||||
|
document.formsoc.action.value="edit";
|
||||||
|
document.formsoc.submit();
|
||||||
|
});
|
||||||
|
})'."\n";
|
||||||
|
|
||||||
|
print 'jQuery(document).ready(function () {
|
||||||
jQuery("#selectaccount_country_id").change(function() {
|
jQuery("#selectaccount_country_id").change(function() {
|
||||||
document.formsoc.action.value="edit";
|
document.formsoc.action.value="edit";
|
||||||
document.formsoc.submit();
|
document.formsoc.submit();
|
||||||
@ -890,7 +895,7 @@ else
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
if ($account->type == 0 || $account->type == 1)
|
if ($_POST["type"] == 0 || $_POST["type"] == 1)
|
||||||
{
|
{
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user