$(".bilgi4").editable("'.site_url().'kullanici/guncelle/sifre", {
onsubmit: function() {
jConfirm("Şifrenizi değiştirmek istiyor musunuz?", "Onay", function(r) {
return r;
});
},
indicator : '<img src="'.base_url().'tema/site/images/loading.gif" />',
type : 'text',
cancel : '<div class="iptalbuton2"></div>',
submit : '<div class="kaydetbuton"></div>',
});
When i click submit button confirmation dialog opening but before i answer the question form post itself.
I assume jConfirm is non-blocking and onsubmit continues execution after that line. So you will need to return false in the handler to stop submitting, and manually submit the form yourself depending on whether the user confirmed or not. Also you will need to disable cancellation when onblur event fires.
See http://jsfiddle.net/NA495/ for a little demo.