You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
674 B

11 years ago
yii.gii = (function ($) {
return {
init: function () {
$('.hint-block').each(function() {
var $hint = $(this);
$hint.parent().find('input,select,textarea').popover({
html: true,
trigger: 'focus',
placement: 'right',
content: $hint.html()
});
});
11 years ago
var $checkAll = $('#check-all');
$checkAll.click(function() {
$('.code-files .check input').prop('checked', this.checked);
});
$('.code-files .check input').click(function() {
$checkAll.prop('checked', !$('.code-files .check input:not(:checked)').length);
});
$checkAll.prop('checked', !$('.code-files .check input:not(:checked)').length);
11 years ago
}
};
})(jQuery);