Last active
September 4, 2015 16:19
-
-
Save nguyenvanduocit/fcd2c6147665ce91ff0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
function($){ | |
$( document ).ready(function() { | |
var isProcessing = false; | |
var regenerateStatus = $('#regenerateStatus'); | |
var statusString = $('#statusString'); | |
$(document).on('click', '#startStopRegenerate', function(e){ | |
e.preventDefault(); | |
var $startStopRegenerateButton = $('#startStopRegenerate'); | |
if(!isProcessing){ | |
isProcessing = true; | |
regenerateStatus.show(); | |
$startStopRegenerateButton.text('Dừng lại'); | |
} | |
else | |
{ | |
isProcessing = false; | |
$startStopRegenerateButton.text('Bắt đầu'); | |
} | |
}); | |
}); | |
} | |
)(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment