table-editable.init.js 506 Bytes
Newer Older
Muhammad Iskandar Java committed
1
$(function(){var e={};$(".table-edits tr").editable({dropdowns:{gender:["Male","Female"]},edit:function(t){$(".edit i",this).removeClass("fa-pencil-alt").addClass("fa-save").attr("title","Save")},save:function(t){$(".edit i",this).removeClass("fa-save").addClass("fa-pencil-alt").attr("title","Edit"),this in e&&(e[this].destroy(),delete e[this])},cancel:function(t){$(".edit i",this).removeClass("fa-save").addClass("fa-pencil-alt").attr("title","Edit"),this in e&&(e[this].destroy(),delete e[this])}})});