//결정 확정 sign.on('mousedown', function (e) { sign.data('x', e.clientX); sign.data('y', e.clientY); var position = sign.position() $(document).on('mousemove', function (e1) { var x = e1.clientX - sign.data('x') position.left; var y = e1.clientY - sign.data('y') position.top; x = x < 범위.minX ? 범위.minX : x; x = x > 범위.maxX? 범위.maxX : x; y = y < 범위.minY ? 범위.minY : y; y = y > 범위.maxY ? 범위.maxY : y;
sign.css({ 왼쪽: x, 위쪽: y }); }).on('mouseup', function () { $(this).off('mousemove').off('mouseup'); }); }); });
$('.cancel', _btnPanel).click(function () { var r = true; if (_add.attr('disabled') == 'disabled') { if (!confirm("未确결정된 盖章将被取消,确定要关闭吗?")) { r = false; } if (r) { }); };