PHP Classes

File: public/asset/js/pages/login.js

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/js/pages/login.js   Download  
File: public/asset/js/pages/login.js
Role: Auxiliary data
Content typex: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 728 bytes
 

Contents

Class file image Download
$(document).ready(function(){ var options = { submitError: function(response){ endLoading(); var responseText = JSON.parse(response.responseText) $('#alert_danger').text(responseText.message).show(); $('#btn-login').prop('disabled', false); }, sebelumSubmit: function(input, ){ showLoading(); $('#alert_danger').text('').hide(); $('#btn-login').prop('disabled', true); }, submitSuccess: function(){ endLoading(); setTimeout(function(){ location.href = path + 'admin/dashboard'; }, 50) } } $("#form-login").initFormAjax(options) })