Changeset 6617
- Timestamp:
- Nov 24, 2014, 9:26:59 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/menu/Menuitem.java
r6609 r6617 217 217 public Menuitem() 218 218 { 219 super("menuitem ");219 super("menuitem interactable"); 220 220 } 221 221 … … 303 303 StringBuilder sb = new StringBuilder(); 304 304 sb.append("<div"); 305 addIdAndStyles(sb, isEnabled() ? " interactable" : " disabled", isAutoInitialized ? "auto-init" : null);305 addIdAndStyles(sb, isEnabled() ? "" : " disabled", isAutoInitialized ? "auto-init" : null); 306 306 if (isAutoInitialized) sb.append(" data-auto-init=\"menuitem\""); 307 307 if (isEnabled()) -
trunk/www/biomaterials/lists/lists.js
r6400 r6617 54 54 { 55 55 frm.source[0].disabled = true; 56 lblSelected.disabled = true;57 Doc.addClass(lblSelected, 'disabled');58 56 } 59 57 else -
trunk/www/common/plugin/configure.js
r6610 r6617 170 170 { 171 171 // De-select current parameter 172 Doc.removeClass('parameter-'+selectedParameter.name+':prompt', ' active');172 Doc.removeClass('parameter-'+selectedParameter.name+':prompt', 'selected'); 173 173 Doc.hide('parameter-'+selectedParameter.name+':section'); 174 174 Doc.hide('valuecontainer'); … … 177 177 selectedParameter = parameter; 178 178 179 Doc.addClass('parameter-'+parameter.name+':prompt', ' active');179 Doc.addClass('parameter-'+parameter.name+':prompt', 'selected'); 180 180 Doc.show('parameter-'+parameter.name+':section'); 181 181 -
trunk/www/exception/not_logged_in.jsp
r6610 r6617 101 101 <input type="hidden" name="redirect" value="<%=redirect%>"> 102 102 103 <table style="margin: auto; width: 640px; margin-top:5em; ">103 <table style="margin: auto; width: 700px; margin-top:5em; "> 104 104 <tr> 105 105 <td> … … 114 114 } 115 115 %> 116 <table style="width: 100%; margin-top: 1em; ">116 <table style="width: 100%; margin-top: 1em; border-collapse: separate;"> 117 117 <tr> 118 118 <td class="base-logo"></td> -
trunk/www/include/menu.jsp
r6607 r6617 154 154 <m:menuitem 155 155 title="<%=menu.getString("recentprojects.title")%>" 156 s tyle="font-weight: bold; color: #000000; background: #e8e8e8;"156 subclass="menusection" 157 157 enabled="false" 158 158 /> … … 175 175 <m:menuitem 176 176 title="<%=prefix + HTML.encodeTags(p.getName())%>" 177 s tyle="<%=active ? "color: #000000; font-weight: bold;" : null %>"177 subclass="active" 178 178 url="<%=url%>" 179 179 data-popup="<%=active ? "" : "ActivateProject, 300, 200"%>" … … 268 268 <m:menuitem 269 269 title="<%=menu.getString("recentitems.title")%>" 270 s tyle="font-weight: bold; color: #000000; background: #e8e8e8;"270 subclass="menusection" 271 271 enabled="false" 272 272 /> … … 337 337 <m:menuitem 338 338 title="<%=menu.getString("stickyitems.title")%>" 339 s tyle="font-weight: bold; color: #000000; background: #e8e8e8;"339 subclass="menusection" 340 340 enabled="false" 341 341 /> -
trunk/www/include/scripts/main-2.js
r6613 r6617 2776 2776 } 2777 2777 2778 2779 /** 2780 Find all <label> tags and create a reverse link between it and 2781 the checkbox/radiobutton it controls so that we can disable the 2782 label when the checkbox/radiobutton is disabled 2783 */ 2784 internal.linkCheckboxesWithLabels = function() 2785 { 2786 var labels = document.getElementsByTagName('label'); 2787 if (labels.length > 0) 2788 { 2789 if (!window.MutationObserver) return; 2790 // We listen on attribute changes on the checkboxes/radiobuttons 2791 var observer = new MutationObserver(internal.checkBoxModified); 2792 var config = { attributes: true }; 2793 2794 for (var i = 0; i < labels.length; i++) 2795 { 2796 var lbl = labels[i]; 2797 // Check the 'for' attribute first 2798 var refId = lbl.getAttribute('for'); 2799 var ref; 2800 if (refId) 2801 { 2802 ref = Doc.element(refId); 2803 } 2804 else 2805 { 2806 // Check child elements for <input> 2807 var inputs = lbl.getElementsByTagName('input'); 2808 if (inputs.length == 1) ref = inputs[0]; 2809 } 2810 if (ref) 2811 { 2812 // Set initial 'disabled' status on <label> 2813 Doc.addOrRemoveClass(lbl, 'disabled', ref.disabled); 2814 // ...and get notified when checkbox/radiobutton is modified 2815 ref.labelRef = lbl; 2816 observer.observe(ref, config); 2817 } 2818 } 2819 } 2820 } 2821 2822 /** 2823 Callback when attributes have changed on list of checkboxes/radiobuttons 2824 */ 2825 internal.checkBoxModified = function(records) 2826 { 2827 for (var i = 0; i < records.length; i++) 2828 { 2829 var target = records[i].target; 2830 if (target.labelRef) 2831 { 2832 Doc.addOrRemoveClass(target.labelRef, 'disabled', target.disabled); 2833 } 2834 } 2835 } 2836 2837 Doc.addFinalizer(internal.linkCheckboxesWithLabels); 2838 2778 2839 return forms; 2779 2840 }(); -
trunk/www/include/styles/joust-2.css
r6613 r6617 50 50 } 51 51 52 .joust .joustitem .icon 53 { 54 margin-right: 2px; 55 } 56 52 57 /* Text part of the menu entry */ 53 58 .joust .joustitem .text … … 72 77 } 73 78 .joust .joustitem.selected .text 74 { 75 color: #FFFFFF; 76 background: #2288AA; 77 } 79 {} 78 80 79 81 /* Used while lazy-loading child items */ -
trunk/www/include/styles/main.css
r6615 r6617 56 56 } 57 57 58 /* Disabled elements */59 .disabled60 {61 color: #666666;62 filter: url(filters.svg#grayscale); /* Firfox, etc */63 filter: gray; /* IE */64 }65 66 .disabled img, img.disabled67 {68 opacity: 0.5;69 }70 71 72 58 /* Monospace:ed elements should use same font size in IE and Firefox */ 73 59 textarea, pre, code … … 105 91 a.disabled, label.disabled, .link.disabled 106 92 { 107 color: #666666;93 pointer-events: none; 108 94 cursor: default; 109 95 } … … 223 209 } 224 210 211 .interactable.selected, .selected .interactable 212 { 213 background-color: #2288AA; 214 color: #FFFFFF; 215 } 216 217 .interactable.disabled, label.disabled 218 { 219 color: #666666; 220 } 221 222 .interactable.disabled img, img.disabled 223 { 224 opacity: 0.5; 225 filter: url(filters.svg#grayscale); 226 } 227 225 228 .button.disabled 226 229 { 227 230 pointer-events: none; 228 231 cursor: default; 229 cursor: not-allowed;230 232 } 231 233 … … 540 542 { 541 543 border-width: 1px; 542 border-style: d otted;544 border-style: dashed; 543 545 border-color: #A0A0A0; 546 background-color: #F0F0F0; 547 color: #666666; 548 pointer-events: none; 549 cursor: default; 544 550 } 545 551 -
trunk/www/include/styles/menu.css
r6613 r6617 131 131 } 132 132 133 .menu .menusection 134 { 135 font-weight: bold; 136 color: #000000; /* To override the 'disabled' grey color */ 137 } 133 138 134 139 .menu .menuitem.disabled 135 140 { 136 color: #666666;137 141 cursor: default; 138 cursor: not-allowed;139 142 pointer-events: none; 140 143 } 141 144 145 .menu .menuitem.active 146 { 147 font-weight: bold; 148 } 142 149 -
trunk/www/include/styles/parameters.css
r6608 r6617 36 36 { 37 37 padding: 0 2px 0 2px; 38 margin: 2px 0 0 0 px;38 margin: 2px 0 0 0; 39 39 border-radius: 4px; 40 40 white-space: nowrap; … … 48 48 } 49 49 50 .parameterlist .param. active50 .parameterlist .param.selected 51 51 { 52 color: #FFFFFF;53 background-color: #2288AA;54 52 font-weight: bold; 55 padding: 1px 2px 1px 2px;53 padding: 1px 5px 1px 2px; 56 54 margin: 1px 0 -1px 0; 57 55 border-radius: 0; … … 82 80 font-weight: bold; 83 81 border-bottom-width: 1px; 84 padding: 0 ;85 margin: 6px 2px 0 2px;82 padding: 0 2px 0 4px; 83 margin: 6px 2px 0 0; 86 84 white-space: nowrap; 87 85 overflow: hidden; … … 92 90 cursor: pointer; 93 91 border-width: 2px; 94 padding: 0 ;92 padding: 0 2px 0 2px; 95 93 margin: 4px 0 -1px 0px; 96 94 border-radius: 4px; -
trunk/www/include/styles/tabcontrol.css
r6603 r6617 54 54 } 55 55 56 .tabcontrol .tab.disabled 57 { 58 pointer-events: none; 59 cursor: default; 60 } 61 56 62 /* Put blue-ish border around tab when hovering or tab is focused */ 57 63 .tabcontrol .tab:hover, .tabcontrol .tab:focus -
trunk/www/main.jsp
r6613 r6617 113 113 <input type="hidden" name="nextpage" value="<%=root%>my_base/user/index.jsp"> 114 114 115 <table style="margin: auto; width: 640px;">115 <table style="margin: auto; width: 700px;"> 116 116 <tr> 117 117 <td>
Note: See TracChangeset
for help on using the changeset viewer.