mirror of
https://github.com/redmine/redmine.git
synced 2026-06-18 15:21:16 +02:00
Merged custom fields format refactoring.
git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -588,6 +588,20 @@ function blockEventPropagation(event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
function toggleDisabledOnChange() {
|
||||
var checked = $(this).is(':checked');
|
||||
$($(this).data('disables')).attr('disabled', checked);
|
||||
$($(this).data('enables')).attr('disabled', !checked);
|
||||
}
|
||||
function toggleDisabledInit() {
|
||||
$('input[data-disables], input[data-enables]').each(toggleDisabledOnChange);
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$('#content').on('change', 'input[data-disables], input[data-enables]', toggleDisabledOnChange);
|
||||
toggleDisabledInit();
|
||||
});
|
||||
|
||||
$(document).ready(setupAjaxIndicator);
|
||||
$(document).ready(hideOnLoad);
|
||||
$(document).ready(addFormObserversForDoubleSubmit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user