diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-12-14 08:22:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-12-14 08:22:43 +0000 |
commit | 2e2e2cfe425c2664517fb59836fbd3eff5e35861 (patch) | |
tree | e3daa66ee8b36d2f1a1468ec9501fba5bc37d71c /public | |
parent | c74f6d9f9bcf02ccc480a2028802b83ec5d91aca (diff) | |
download | redmine-2e2e2cfe425c2664517fb59836fbd3eff5e35861.tar.gz redmine-2e2e2cfe425c2664517fb59836fbd3eff5e35861.zip |
Merged custom fields format refactoring.
git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 14 | ||||
-rw-r--r-- | public/stylesheets/application.css | 33 |
2 files changed, 44 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 255886731..a6d15f2f0 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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); + diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 717984084..b6a9e4711 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -457,8 +457,8 @@ table.fields_permissions select {font-size:90%} table.fields_permissions td.readonly {background:#ddd;} table.fields_permissions td.required {background:#d88;} -textarea#custom_field_possible_values {width: 99%} -textarea#custom_field_default_value {width: 99%} +textarea#custom_field_possible_values {width: 95%; resize:vertical} +textarea#custom_field_default_value {width: 95%; resize:vertical} input#content_comments {width: 99%} @@ -475,6 +475,10 @@ p.pagination {margin-top:8px; font-size: 90%} html>body .tabular p {overflow:hidden;} +.tabular input, .tabular select {max-width:95%} +.tabular textarea {width:95%; resize:vertical;} +.tabular span[title] {border-bottom:1px dotted #aaa;} + .tabular label{ font-weight: bold; float: left; @@ -532,6 +536,27 @@ fieldset#notified_events .parent { padding-left: 20px; } span.required {color: #bb0000;} .summary {font-style: italic;} +.check_box_group { + display:block; + width:95%; + max-height:300px; + overflow-y:auto; + padding:2px 4px 4px 2px; + background:#fff; + border:1px solid #9EB1C2; + border-radius:2px +} +.check_box_group label { + font-weight: normal; + margin-left: 0px !important; + text-align: left; + float: none; + display: block; + width: auto; +} +.check_box_group.bool_cf {border:0; background:inherit;} +.check_box_group.bool_cf label {display: inline;} + #attachments_fields input.description {margin-left:4px; width:340px;} #attachments_fields span {display:block; white-space:nowrap;} #attachments_fields input.filename {border:0; height:1.8em; width:250px; color:#555; background-color:inherit; background:url(../images/attachment.png) no-repeat 1px 50%; padding-left:18px;} @@ -560,7 +585,9 @@ a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px em.info {font-style:normal;font-size:90%;color:#888;display:block;} em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} -textarea.text_cf {width:90%;} +textarea.text_cf {width:95%; resize:vertical;} +input.string_cf, input.link_cf {width:95%;} +select.bool_cf {width:auto !important;} #tab-content-modules fieldset p {margin:3px 0 4px 0;} |