Lines 29-35
function checkCodes( new_lettercode, new_branchcode ){
Link Here
|
29 |
} |
29 |
} |
30 |
}); |
30 |
}); |
31 |
} |
31 |
} |
32 |
|
32 |
//This has bug |
33 |
function confirmOverwrite( new_lettercode, new_branchcode ){ |
33 |
function confirmOverwrite( new_lettercode, new_branchcode ){ |
34 |
var letter_exists; |
34 |
var letter_exists; |
35 |
$.ajax({ |
35 |
$.ajax({ |
Lines 127-133
$(document).ready(function() {
Link Here
|
127 |
var new_lettercode = $("#code").val(); |
127 |
var new_lettercode = $("#code").val(); |
128 |
var new_branchcode = $("#branch").val(); |
128 |
var new_branchcode = $("#branch").val(); |
129 |
var confirm = confirmOverwrite( new_lettercode, new_branchcode ); |
129 |
var confirm = confirmOverwrite( new_lettercode, new_branchcode ); |
130 |
if( confirm && confirm === false){ |
130 |
if(confirm === false){ |
131 |
return false; |
131 |
return false; |
132 |
} |
132 |
} |
133 |
} |
133 |
} |
134 |
- |
|
|