2012-09-15 05:24:34 +02:00
|
|
|
|
(function ($) {
|
|
|
|
|
$.fn.enableCheckboxRangeSelection = function () {
|
|
|
|
|
var lastCheckbox = null;
|
|
|
|
|
var $spec = this;
|
|
|
|
|
$spec.unbind("click.checkboxrange");
|
|
|
|
|
$spec.bind("click.checkboxrange", function (e) {
|
|
|
|
|
if (lastCheckbox != null && (e.shiftKey || e.metaKey)) {
|
|
|
|
|
$spec.slice(
|
|
|
|
|
Math.min($spec.index(lastCheckbox), $spec.index(e.target)),
|
|
|
|
|
Math.max($spec.index(lastCheckbox), $spec.index(e.target)) + 1
|
|
|
|
|
).prop('checked', e.target.checked);
|
|
|
|
|
}
|
2012-10-28 18:48:38 +01:00
|
|
|
|
lastCheckbox = e.targety()
|
2012-09-15 05:24:34 +02:00
|
|
|
|
});
|
|
|
|
|
};
|
2012-10-28 18:48:38 +01:00
|
|
|
|
})(jQuery);
|
|
|
|
|
|
2012-12-11 07:45:52 +01:00
|
|
|
|
function createGuid() {
|
|
|
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
|
|
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
|
|
|
|
return v.toString(16);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-28 18:48:38 +01:00
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
while($('#logo span').height() > $('#logo').height()) {
|
|
|
|
|
$('#logo span').css('font-size', (parseInt($('#logo span').css('font-size')) - 1) + "px" );
|
|
|
|
|
};
|
|
|
|
|
});
|