text: 
  $(document).ready(function(){var url_path="http://phalms.dev/classroomuser/";var classroomuser_grid=$("#grid-classroomuser").bootgrid({ajax:true,url:url_path+"list",selection:true,multiSelect:true,templates:{header:"<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\"><div class=\"col-sm-6 actionBar\"><div class=\"{{css.search}}\"></div></div><div class=\"col-sm-6\"><div class=\"{{css.actions}}\"></div> <div class='btn btn-primary' id='create' class='command-add'> <span class=\"fa fa-plus-square-o\"></span> New Classroomuser</div></div></div></div>",},formatters:{"file":function(column,row){return"<img plugin='"+row.file+"' height='75px'>";},"published":function(column,row)
  {if(row.publish==1){return"Yes";}else{return"No";}},"commands":function(column,row)
  {return"<button type=\"button\" class=\"btn btn-sm btn-primary command-edit\" data-row-title=\""+row.title+"\" data-row-category=\""+row.category+"\" data-row-id=\""+row.id+"\"><span class=\"fa fa-pencil\"></span></button> "+"<button type=\"button\" class=\"btn btn-sm btn-primary command-delete\" data-row-id=\""+row.id+"\"><span class=\"fa fa-trash-o\"></span></button>";}}}).on("loaded.rs.jquery.bootgrid",function()
  {$(this).find(".command-edit").off();$(this).find(".command-delete").off();$(this).find(".command-add").off();$(this).find(".command-edit").on("click",function(e)
  {myForm('edit',$(this));$("#myForm").ajaxForm({url:url_path+'edit',type:'post',success:function(data){myAlert(data);$("#grid-classroomuser").bootgrid("reload");setTimeout(function(){$('#myModal').modal('hide')},10000);}});}).end().find(".command-delete").on("click",function(e)
  {$.get(url_path+"delete/"+$(this).data("row-id"),function(data){toastr.success(data.msg,data.title);toastr.options.timeOut=15;toastr.options.extendedTimeOut=30;$("#grid-classroomuser").bootgrid("reload");});});$("#create").on("click",function(e)
  {myForm('create',e);$("#myForm").ajaxForm({url:url_path+'create',type:'post',success:function(data){myAlert(data);classroomuser_grid.bootgrid("reload");setTimeout(function(){$('#myclassroomuser').modal('hide');},10000);}});});});function myForm(status,e){$('#myForm')[0].reset();if(status=='edit'){$('#myclassroomuser .modal-title').html('Edit classroomuser '+e.data("row-id"));$.getJSON(url_path+"get/?id="+e.data("row-id"),function(data){$('#hidden_id').val(data.id);$('#classroom_id').val(data.classroom_id);$('#user_id').val(data.user_id);});}else{$('#myclassroomuser .modal-title').html('Create New classroomuser ');}
  $('#myclassroomuser').modal('show');}
  function myAlert(e)
  {var mesg=[];mesg["alert"]=e.alert;mesg["title"]=e.msg;mesg["msg"]="#classroomuser "+e._id+" "+e.msg;notif_show(mesg);}});;