30 lines
527 B
JavaScript
30 lines
527 B
JavaScript
$(function()
|
|
{
|
|
$('#noLimit').click(function()
|
|
{
|
|
if($(this).attr('checked') == 'checked')
|
|
{
|
|
$('#WIPCount').val('');
|
|
$('#WIPCount').attr('disabled', true);
|
|
}
|
|
else
|
|
{
|
|
$('#WIPCount').removeAttr('disabled');
|
|
}
|
|
})
|
|
})
|
|
|
|
/**
|
|
* Set WIP count.
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function setWIPLimit()
|
|
{
|
|
var count = $('#WIPCount').val();
|
|
if($('#noLimit').attr('checked') == 'checked') count = -1;
|
|
|
|
$('#limit').val(count);
|
|
}
|