コード例 #1
0
ファイル: item.php プロジェクト: rahmanazhar/imperium
		var h_delta = h_omega - h_alpha;
		var m_delta = Math.abs(m_omega - m_alpha);
		if (m_delta > 0) {
			--h_delta;
			m_delta = 100 - m_delta;
		}

		$('#a_quantity').val(h_delta.toFixed(0) + '.' + m_delta.toFixed(0));
	});

	$('input[type=number]').on('blur', function() {
		toNumeric(this);
	});

	// Bind Ctrl+Enter
	$('#workorder-item-form').on('keypress', function(e) {
		if ((e.keyCode == 10) && (e.ctrlKey)) {
			$('#status').val('Complete');
			$('#workorder-item-exec-save').click();
		}
	});

});

</script>

<?php 
// @todo should be at theme or webroot/index.php level
if (Radix::isAJAX()) {
    exit(0);
}