diff --git a/script.js b/script.js
index a85114b..2f3fc88 100644
--- a/script.js
+++ b/script.js
@@ -1,14 +1,17 @@
$(function() {
$("#allRecord").on("click", ".editUser", function() {
- $(this).toggleClass('fa-edit fa-check');
- $(this).toggleClass('editUser confirmEditUser');
- for(i=0; i<$("td", $(this).parent().parent()).length-1;i++)
- {
- j= $($("td", $(this).parent().parent())[i]);
- j.html('');
- }
+ $(this).toggleClass('fa-edit fa-check');
+ $(this).toggleClass('editUser confirmEditUser');
+ for(i=0; i<$("td", $(this).parent().parent()).length-1;i++)
+ {
+ j= $($("td", $(this).parent().parent())[i]);
+ inputOptions = '';
+ if(j.attr('class')=="pw")
+ inputOptions += 'type="password" data-oldpw="'+ltrim(j.html())+'" ';
+ else if (j.attr('class') == "datene")
+ inputOptions += 'type="date" '
+ j.html('');
+ }
});
$("#allRecord").on("click", ".confirmEditUser", function() {
function callBackVerif(data){