فهرست منبع

remove some inline css styles

Jason Rivard 8 سال پیش
والد
کامیت
d67e4c00f6

+ 7 - 7
src/main/webapp/WEB-INF/jsp/admin-dashboard.jsp

@@ -126,9 +126,9 @@
                 </table>
                 <div data-dojo-type="dijit.layout.TabContainer" style="margin-top: 15px; width: 100%; height: 100%;" data-dojo-props="doLayout: false, persist: true">
                     <div data-dojo-type="dijit.layout.ContentPane" title="Last Minute" class="tabContent">
-                        <table class="nomargin" style="border: 0px;">
+                        <table class="nomargin noborder">
                             <tr>
-                                <td colspan="10" style="margin:0; padding:0; border: 0px;">
+                                <td colspan="10" class="noborder nomargin nopadding">
                                     <div style="max-width: 600px; text-align: center">
                                         <div id="EPS-GAUGE-AUTHENTICATION_MINUTE" style="float: left; width: 33%">Authentications</div>
                                         <div id="EPS-GAUGE-PASSWORD_CHANGES_MINUTE" style="float: left; width: 33%">Password Changes</div>
@@ -139,9 +139,9 @@
                         </table>
                     </div>
                     <div data-dojo-type="dijit.layout.ContentPane" title="Last Hour" class="tabContent">
-                        <table class="nomargin" style="border: 0px;">
+                        <table class="nomargin noborder">
                             <tr>
-                                <td colspan="10" style="margin:0; padding:0; border: 0px;">
+                                <td colspan="10" class="noborder nomargin nopadding">
                                     <div style="max-width: 600px; text-align: center">
                                         <div id="EPS-GAUGE-AUTHENTICATION_HOUR" style="float: left; width: 33%">Authentications</div>
                                         <div id="EPS-GAUGE-PASSWORD_CHANGES_HOUR" style="float: left; width: 33%">Password Changes</div>
@@ -152,9 +152,9 @@
                         </table>
                     </div>
                     <div data-dojo-type="dijit.layout.ContentPane" title="Last Day" class="tabContent">
-                        <table class="nomargin" style="border: 0px;">
+                        <table class="nomargin noborder">
                             <tr>
-                                <td colspan="10" style="margin:0; padding:0; border: 0px;">
+                                <td colspan="10" class="noborder nomargin nopadding">
                                     <div style="max-width: 600px; text-align: center">
                                         <div id="EPS-GAUGE-AUTHENTICATION_DAY" style="float: left; width: 33%">Authentications</div>
                                         <div id="EPS-GAUGE-PASSWORD_CHANGES_DAY" style="float: left; width: 33%">Password Changes</div>
@@ -541,7 +541,7 @@
                     <% } %>
                 </table>
                 <% } else { %>
-                <div style="text-align:center; width:100%; border: 0">
+                <div class="noborder" style="text-align:center; width:100%;">
                     <a style="cursor: pointer" id="button-showLocalDBCounts">Show LocalDB record counts</a> (may be slow to load)
                 </div>
                 <% } %>

+ 8 - 8
src/main/webapp/WEB-INF/jsp/admin-logview.jsp

@@ -52,7 +52,7 @@
             <input type="hidden" name="pwmFormID" value="<pwm:FormID/>"/>
             <table style="">
                 <tr style="width:0">
-                    <td class="key" style="border:0">
+                    <td class="key" class="noborder">
                         <label for="level">Level</label>
                         <br/>
                         <%--
@@ -83,7 +83,7 @@
                         </select>
 
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         <label for="type">Type</label>
                         <br/>
                         <% final String selectedType = pwmRequest.readParameterAsString("type", "Both");%>
@@ -94,19 +94,19 @@
                             <option value="Both" <%= "Both".equals(selectedType) ? "selected=\"selected\"" : "" %>>Both</option>
                         </select>
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         Username
                         <br/>
                         <input name="username" type="text"
                                value="<%=pwmRequest.readParameterAsString("username")%>"/>
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         Containing text
                         <br/>
                         <input name="text" type="text"
                                value="<%=pwmRequest.readParameterAsString("text")%>"/>
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         Max Count
                         <br/>
                         <% final String selectedCount = pwmRequest.readParameterAsString("count");%>
@@ -123,7 +123,7 @@
                             </option>
                         </select>
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         Max Time
                         <br/>
                         <% final String selectedTime = pwmRequest.readParameterAsString("maxTime");%>
@@ -138,7 +138,7 @@
                             </option>
                         </select>
                     </td>
-                    <td class="key" style="border: 0">
+                    <td class="key" class="noborder">
                         <label for="displayText">Display</label>
                         <br/>
                         <% final String displayText = pwmRequest.readParameterAsString("displayText", "Both");%>
@@ -147,7 +147,7 @@
                             <option value="true" <%= "true".equals(displayText) ? "selected=\"selected\"" : "" %>>Text</option>
                         </select>
                     </td>
-                    <td class="key" style="border: 0; vertical-align: middle">
+                    <td class="key noborder" style="vertical-align: middle">
                         <button type="submit" name="submit_button" id="submit_button" class="btn">
                             <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-search"></span></pwm:if>
                             Search

+ 7 - 7
src/main/webapp/WEB-INF/jsp/changepassword.jsp

@@ -57,9 +57,9 @@
         <br/>
         <%@ include file="fragment/message.jsp" %>
         <form action="<pwm:current-url/>" method="post" enctype="application/x-www-form-urlencoded" id="changePasswordForm" autocomplete="off">
-            <table style="border:0">
+            <table class="noborder">
                 <tr>
-                    <td style="border:0;">
+                    <td class="noborder">
                         <div style="width: 100%">
                             <h2 style="display: inline">
                                 <label style="" for="password1"><pwm:display key="Field_NewPassword"/></label>
@@ -73,7 +73,7 @@
                         </div>
                         <input type="<pwm:value name="<%=PwmValue.passwordFieldType%>"/>" name="password1" id="password1" class="changepasswordfield passwordfield" <pwm:autofocus/>/>
                     </td>
-                    <td style="border:0; width:15%">
+                    <td class="noborder" style="width:15%">
                         <pwm:if test="<%=PwmIfTest.showStrengthMeter%>">
                         <div id="strengthBox" style="visibility:hidden;">
                             <div id="strengthLabel" style="padding-top:40px;">
@@ -85,14 +85,14 @@
                         </div>
                         </pwm:if>
                     </td>
-                    <td style="border:0; width:10%">&nbsp;</td>
+                    <td class="noborder" style="width:10%">&nbsp;</td>
                 </tr>
                 <tr>
-                    <td style="border:0; width:75%">
+                    <td class="noborder" style="width:75%">
                         <h2 style="display: inline"><label for="password2"><pwm:display key="Field_ConfirmPassword"/></label></h2>
                         <input type="<pwm:value name="<%=PwmValue.passwordFieldType%>"/>" name="password2" id="password2" class="changepasswordfield passwordfield"/>
                     </td>
-                    <td style="border:0; width:15%">
+                    <td class="noborder" style="width:15%">
                         <%-- confirmation mark [not shown initially, enabled by javascript; see also changepassword.js:markConfirmationMark() --%>
                         <div style="padding-top:45px;">
                             <img style="visibility:hidden;" id="confirmCheckMark" alt="checkMark" height="15" width="15"
@@ -101,7 +101,7 @@
                                  src="<pwm:context/><pwm:url url='/public/resources/redX.png'/>">
                         </div>
                     </td>
-                    <td style="border:0; width:10%">&nbsp;</td>
+                    <td class="noborder" style="width:10%">&nbsp;</td>
                 </tr>
             </table>
 

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-database.jsp

@@ -185,7 +185,7 @@
 
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_admins.jsp

@@ -64,7 +64,7 @@
             </div>
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_context.jsp

@@ -58,7 +58,7 @@
             </div>
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_proxy.jsp

@@ -70,7 +70,7 @@
             </div>
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_server.jsp

@@ -88,7 +88,7 @@
             </div>
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_testuser.jsp

@@ -61,7 +61,7 @@
             </div>
         </form>
         <br/>
-        <div id="healthBody" style="border:0; margin:0; padding:0; cursor: pointer">
+        <div id="healthBody" class="noborder nomargin nopadding" style="cursor: pointer">
             <div style="text-align: center">
                 <button class="menubutton" style="margin-left: auto; margin-right: auto">
                     <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-check"></span></pwm:if>

+ 10 - 10
src/main/webapp/WEB-INF/jsp/configguide-start.jsp

@@ -48,37 +48,37 @@
         </p>
 
         <br/>
-        <table style="border:0">
-            <tr style="border:0">
-                <td style="border:0" class="menubutton_key">
+        <table class="noborder">
+            <tr class="noborder">
+                <td class="noborder" class="menubutton_key">
                     <a class="menubutton" id="button-startConfigGuide">
                         <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-rocket"></span></pwm:if>
                         <pwm:display key="MenuItem_StartConfigGuide" bundle="Config"/>
                     </a>
                 </td>
-                <td style="border:0">
+                <td class="noborder">
                     <p><pwm:display key="MenuDisplay_StartConfigGuide" bundle="Config"/></p>
                 </td>
             </tr>
-            <tr style="border:0">
-                <td style="border:0" class="menubutton_key">
+            <tr class="noborder">
+                <td class="noborder" class="menubutton_key">
                     <a class="menubutton" id="button-manualConfig">
                         <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-cogs"></span></pwm:if>
                         <pwm:display key="MenuItem_ManualConfig" bundle="Config"/>
                     </a>
                 </td>
-                <td style="border:0">
+                <td class="noborder">
                     <p><pwm:display key="MenuDisplay_ManualConfig" bundle="Config"/></p>
                 </td>
             </tr>
-            <tr style="border:0">
-                <td style="border:0" class="menubutton_key">
+            <tr class="noborder">
+                <td class="noborder" class="menubutton_key">
                     <a class="menubutton" id="button-uploadConfig">
                         <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-upload"></span></pwm:if>
                         <pwm:display key="MenuItem_UploadConfig" bundle="Config"/>
                     </a>
                 </td>
-                <td style="border:0">
+                <td class="noborder">
                     <p><pwm:display key="MenuDisplay_UploadConfig" bundle="Config"/></p>
                 </td>
             </tr>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager.jsp

@@ -108,7 +108,7 @@
                 <td class="title">Health</td>
             </tr>
             <tr><td>
-                <div id="healthBody" class="health-body" style="border: 0; padding: 0">
+                <div id="healthBody" class="health-body noborder nopadding">
                     <div class="WaitDialogBlank"></div>
                 </div>
             </td></tr>

+ 9 - 9
src/main/webapp/WEB-INF/jsp/fragment/form.jsp

@@ -164,12 +164,12 @@
         <pwm:DisplayPasswordRequirements separator="</li>" prepend="<li>" form="newuser"/>
     </ul>
 </div>
-<table style="border:0; margin: 0; padding: 0">
-    <tr style="border:0; margin: 0; padding: 0">
-        <td style="border:0; margin: 0; padding: 0; width:60%">
+<table class="noborder nomargin nopadding">
+    <tr class="noborder nomargin nopadding">
+        <td class="noborder nomargin nopadding" style="width:60%">
             <input type="<pwm:value name="passwordFieldType"/>" name="password1" id="password1" class="changepasswordfield passwordfield" onkeypress="PWM_MAIN.getObject('password2').value=''" style="margin-left:5px"/>
         </td>
-        <td style="border:0;">
+        <td class="noborder">
             <% if (ContextManager.getPwmApplication(session).getConfig() != null && ContextManager.getPwmApplication(session).getConfig().readSettingAsBoolean(PwmSetting.PASSWORD_SHOW_STRENGTH_METER)) { %>
             <div id="strengthBox" style="visibility:hidden;">
                 <div id="strengthLabel">
@@ -192,13 +192,13 @@
             </pwm:script>
             <% } %>
         </td>
-        <td style="border:0; width:10%">&nbsp;</td>
+        <td class="noborder" style="width:10%">&nbsp;</td>
     </tr>
-    <tr style="border:0; margin: 0; padding: 0">
-        <td style="border:0; margin: 0; padding: 0">
+    <tr class="noborder nomargin nopadding">
+        <td class="noborder nomargin nopadding">
             <input type="<pwm:value name="<%=PwmValue.passwordFieldType%>"/>" name="password2" id="password2" class="changepasswordfield passwordfield" style="margin-left:5px"/>
         </td>
-        <td style="border:0">
+        <td class="noborder">
             <%-- confirmation mark [not shown initially, enabled by javascript; see also changepassword.js:markConfirmationMark() --%>
             <div style="padding-top:10px;">
                 <img style="visibility:hidden;" id="confirmCheckMark" alt="checkMark" height="15" width="15"
@@ -207,7 +207,7 @@
                      src="<pwm:context/><pwm:url url='/public/resources/redX.png'/>">
             </div>
         </td>
-        <td style="border:0; width:10%">&nbsp;</td>
+        <td class="noborder" style="width:10%">&nbsp;</td>
     </tr>
 </table>
 <% } %>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/fragment/header-menu.jsp

@@ -34,7 +34,7 @@
             });
         </script>
     </pwm:script>
-    <div id="header-warning" style="display: none">
+    <div id="header-warning" class="nodisplay">
         <div id="header-warning-message" class="header-warning-row header-warning-message">
             <pwm:if test="<%=PwmIfTest.trialMode%>">
                 <pwm:display key="Header_TrialMode" bundle="Admin"/>

+ 4 - 4
src/main/webapp/WEB-INF/jsp/helpdesk-detail.jsp

@@ -85,9 +85,9 @@
             </script>
         </pwm:script>
         <%@ include file="/WEB-INF/jsp/fragment/message.jsp" %>
-        <table style="border:0">
+        <table class="noborder">
             <tr>
-                <td style="border:0; width: 600px; max-width:600px; vertical-align: top">
+                <td class="noborder" style="width: 600px; max-width:600px; vertical-align: top">
                     <div id="panel-helpdesk-detail" data-dojo-type="dijit.layout.TabContainer" style="max-width: 600px; height: 100%;" data-dojo-props="doLayout: false, persist: true" >
                         <div id="Field_Profile" data-dojo-type="dijit.layout.ContentPane" title="<pwm:display key="Field_Profile"/>" class="tabContent">
                             <div style="max-height: 400px; overflow: auto;">
@@ -517,8 +517,8 @@
                     <br/>
                     <div class="footnote"><div class="timestamp"><%=PwmConstants.DEFAULT_DATETIME_FORMAT.format(new Date())%></div></div>
                 </td>
-                <td style="border:0; width: 200px; max-width:200px; text-align: left; vertical-align: top">
-                    <div style="border:0; margin-top: 25px; margin-left: 5px">
+                <td class="noborder" style="width: 200px; max-width:200px; text-align: left; vertical-align: top">
+                    <div class="noborder" style="margin-top: 25px; margin-left: 5px">
                         <button name="button_continue" class="helpdesk-detail-btn btn" id="button_continue" autofocus>
                             <pwm:if test="<%=PwmIfTest.showIcons%>"><span class="btn-icon pwm-icon pwm-icon-backward"></span></pwm:if>
                             <pwm:display key="Button_GoBack"/>

+ 1 - 1
src/main/webapp/public/health.jsp

@@ -55,7 +55,7 @@
             </tr>
             <tr>
                 <td colspan="10"  style="margin:0; padding:0">
-                    <div id="healthBody" style="border:0; margin:0; padding:0">
+                    <div id="healthBody" class="noborder nomargin nopadding">
                         <div class="WaitDialogBlank"></div>
                     </div>
                 </td>

+ 6 - 6
src/main/webapp/public/resources/js/changepassword.js

@@ -236,15 +236,15 @@ PWM_CHANGEPW.doRandomGeneration=function(randomConfig) {
         dialogBody += PWM_MAIN.showString('Display_PasswordGeneration');
     }
     dialogBody += "<br/><br/>";
-    dialogBody += '<table style="border: 0">';
+    dialogBody += '<table class="noborder">';
 
     for (var i = 0; i < 20; i++) {
-        dialogBody += '<tr style="border: 0">';
+        dialogBody += '<tr class="noborder">';
         for (var j = 0; j < 2; j++) {
             i = i + j;
             (function(index) {
                 var elementID = "randomGen" + index;
-                dialogBody += '<td style="border: 0; padding-bottom: 5px;" width="20%"><div style="visibility:hidden" class="link-randomPasswordValue" href="#" id="' + elementID + '">&nbsp;</div></td>';
+                dialogBody += '<td class="noborder" style="padding-bottom: 5px;" width="20%"><div style="visibility:hidden" class="link-randomPasswordValue" href="#" id="' + elementID + '">&nbsp;</div></td>';
                 eventHandlers.push(function(){
                     PWM_MAIN.addEventHandler(elementID,'click',function(){
                         var value = PWM_MAIN.getObject(elementID).innerHTML;
@@ -257,9 +257,9 @@ PWM_CHANGEPW.doRandomGeneration=function(randomConfig) {
     }
     dialogBody += "</table><br/><br/>";
 
-    dialogBody += '<table style="border: 0">';
-    dialogBody += '<tr style="border: 0"><td style="border: 0"><button class="btn" id="moreRandomsButton" disabled="true"><span class="btn-icon pwm-icon pwm-icon-refresh"></span>' + PWM_MAIN.showString('Button_More') + '</button></td>';
-    dialogBody += '<td style="border: 0; text-align:right;"><button class="btn" id="cancelRandomsButton"><span class="btn-icon pwm-icon pwm-icon-times"></span>' + PWM_MAIN.showString('Button_Cancel') + '</button></td></tr>';
+    dialogBody += '<table class="noborder">';
+    dialogBody += '<tr class="noborder"><td class="noborder"><button class="btn" id="moreRandomsButton" disabled="true"><span class="btn-icon pwm-icon pwm-icon-refresh"></span>' + PWM_MAIN.showString('Button_More') + '</button></td>';
+    dialogBody += '<td class="noborder" style="text-align:right;"><button class="btn" id="cancelRandomsButton"><span class="btn-icon pwm-icon pwm-icon-times"></span>' + PWM_MAIN.showString('Button_Cancel') + '</button></td></tr>';
     dialogBody += "</table>";
 
     randomConfig['dialogBody'] = dialogBody;

+ 12 - 12
src/main/webapp/public/resources/js/configeditor-settings.js

@@ -273,27 +273,27 @@ StringArrayValueHandler.drawRow = function(settingKey, iteration, value, itemCou
 
     if (syntax == 'PROFILE') {
         var copyButtonID = 'button-' + settingKey + '-' + iteration + '-copy';
-        rowHtml += '<td style="border:0; padding:0; width:10px" title="Copy">';
+        rowHtml += '<td class="noborder nopadding" style="width:10px" title="Copy">';
         rowHtml += '<span id="' + copyButtonID + '" class="action-icon pwm-icon pwm-icon-copy"></span>';
         rowHtml += '</td>';
     }
 
     var downButtonID = 'button-' + settingKey + '-' + iteration + '-moveDown';
-    rowHtml += '<td style="border:0; padding:0; width:10px" title="Move Down">';
+    rowHtml += '<td class="noborder nopadding" style="width:10px" title="Move Down">';
     if (itemCount > 1 && iteration != (itemCount -1)) {
         rowHtml += '<span id="' + downButtonID + '" class="action-icon pwm-icon pwm-icon-chevron-down"></span>';
     }
     rowHtml += '</td>';
 
     var upButtonID = 'button-' + settingKey + '-' + iteration + '-moveUp';
-    rowHtml += '<td style="border:0; padding:0; width:10px" title="Move Up">';
+    rowHtml += '<td class="noborder nopadding" style="width:10px" title="Move Up">';
     if (itemCount > 1 && iteration != 0) {
         rowHtml += '<span id="' + upButtonID + '" class="action-icon pwm-icon pwm-icon-chevron-up"></span>';
     }
     rowHtml += '</td>';
 
     var deleteButtonID = 'button-' + settingKey + '-' + iteration + '-delete';
-    rowHtml += '<td style="border:0; padding:0; width:10px" title="Delete">';
+    rowHtml += '<td class="noborder nopadding" style="width:10px" title="Delete">';
 
     if (itemCount > 1 || (!settingInfo['required'])) {
         rowHtml += '<span id="' + deleteButtonID + '" class="delete-row-icon action-icon pwm-icon pwm-icon-times"></span>';
@@ -673,7 +673,7 @@ FormTableHandler.drawRow = function(parentDiv, settingKey, iteration, value) {
 
         var hideOptions = PWM_MAIN.JSLibrary.arrayContains(PWM_SETTINGS['settings'][settingKey]['flags'], 'Form_HideOptions');
         if (!hideOptions) {
-            htmlRow += '<td style="min-width:90px; border:0"><button id="' + inputID + 'optionsButton"><span class="btn-icon pwm-icon pwm-icon-sliders"/> Options</button></td>';
+            htmlRow += '<td class="noborder" style="min-width:90px;"><button id="' + inputID + 'optionsButton"><span class="btn-icon pwm-icon pwm-icon-sliders"/> Options</button></td>';
         }
 
         htmlRow += '<td style="width:10px">';
@@ -1067,7 +1067,7 @@ FormTableHandler.showSelectOptionsDialog = function(keyName, iteration) {
         var value = PWM_VAR['clientSettingCache'][keyName][iteration]['selectOptions'][optionName];
         var optionID = inputID + optionName;
         bodyText += '<td>' + optionName + '</td><td>' + value + '</td>';
-        bodyText += '<td style="border:0; width:15px">';
+        bodyText += '<td class="noborder" style="width:15px">';
         bodyText += '<span id="' + optionID + '-removeButton" class="delete-row-icon action-icon pwm-icon pwm-icon-times"></span>';
         bodyText += '</td>';
         bodyText += '</tr><tr>';
@@ -1556,7 +1556,7 @@ ActionHandler.showOptionsDialog = function(keyName, iteration) {
         if (value['type'] == 'webservice') {
             titleText = 'Web Service options for ' + value['name'];
             bodyText += '<tr>';
-            bodyText += '<td class="key">HTTP Method</td><td style="border:0;"><select id="select-' + inputID + '-method">';
+            bodyText += '<td class="key">HTTP Method</td><td class="noborder" ><select id="select-' + inputID + '-method">';
 
             for (var optionItem in ActionHandler.httpMethodOptions) {
                 var label = ActionHandler.httpMethodOptions[optionItem]['label'];
@@ -1589,7 +1589,7 @@ ActionHandler.showOptionsDialog = function(keyName, iteration) {
             bodyText += '<td class="key">Attribute Value</td><td><input style="width:300px" class="configStringInput" type="text" id="input-' + inputID + '-attributeValue' + '" value="' + value['attributeValue'] + '"/></td>';
             bodyText += '</tr>';
             bodyText += '<tr>';
-            bodyText += '<td class="key">Operation Type</td><td style="border:0;"><select id="select-' + inputID + '-ldapMethod' + '">';
+            bodyText += '<td class="key">Operation Type</td><td class="noborder"><select id="select-' + inputID + '-ldapMethod' + '">';
 
             for (var optionItem in ActionHandler.ldapMethodOptions) {
                 var label = ActionHandler.ldapMethodOptions[optionItem]['label'];
@@ -1846,7 +1846,7 @@ EmailTableHandler.drawRowHtml = function(settingKey, localeName) {
     var localeLabel = localeName == '' ? 'Default Locale' : PWM_GLOBAL['localeInfo'][localeName] + " (" + localeName + ")";
     var idPrefix = "setting-" + localeName + "-" + settingKey;
     var htmlBody = '';
-    htmlBody += '<table style="border:0"><tr ><td style="border:0">';
+    htmlBody += '<table class="noborder"><tr ><td class="noborder">';
     htmlBody += '<table>';
     if (PWM_MAIN.JSLibrary.itemCount(PWM_VAR['clientSettingCache'][settingKey]) > 1) {
         htmlBody += '<tr><td colspan="5" class="title" style="font-size:100%; font-weight:normal">' + localeLabel + '</td></tr>';
@@ -1863,7 +1863,7 @@ EmailTableHandler.drawRowHtml = function(settingKey, localeName) {
     outputFunction('Plain Body', 'bodyPlain');
     outputFunction('HTML Body', 'bodyHtml');
 
-    htmlBody += '</table></td><td style="width:20px; border:0; vertical-align:top">';
+    htmlBody += '</table></td><td class="noborder" style="width:20px; vertical-align:top">';
     if (localeName != '' || PWM_MAIN.JSLibrary.itemCount(PWM_VAR['clientSettingCache'][settingKey]) < 2) { // add remove locale x
         htmlBody += '<div id="button-deleteRow-' + idPrefix + '" style="vertical-align:top" class="delete-row-icon action-icon pwm-icon pwm-icon-times"></div>';
     }
@@ -2057,7 +2057,7 @@ ChallengeSettingHandler.draw = function(settingKey) {
             }
             bodyText += '</td></tr>';
 
-            bodyText += '</table></td><td style="width:20px; border:0; vertical-align:top">';
+            bodyText += '</table></td><td class="noborder" style="width:20px; vertical-align:top">';
             if (localeName != '' || PWM_MAIN.JSLibrary.itemCount(PWM_VAR['clientSettingCache'][settingKey]) < 2) { // add remove locale x
                 bodyText += '<div id="button-deleteRow-' + settingKey + '-' + localeKey + '" style="vertical-align:top" class="delete-row-icon action-icon pwm-icon pwm-icon-times"></div>';
             }
@@ -2156,7 +2156,7 @@ ChallengeSettingHandler.editLocale = function(keyName, localeKey) {
             dialogBody += '<label class="checkboxWrapper"><input type="checkbox" id="value-wordlist-' + inputID + '" disabled/>Apply Word List</label>';
 
             dialogBody += '</td></tr>';
-            dialogBody += '</table></td><td style="border:0; vertical-align: top">';
+            dialogBody += '</table></td><td class="noborder" style="vertical-align: top">';
             if (PWM_MAIN.JSLibrary.itemCount(PWM_VAR['clientSettingCache'][keyName][localeKey]) > 1) { // add remove locale x
 
                 dialogBody += '<div class="delete-row-icon action-icon pwm-icon pwm-icon-times" id="button-deleteRow-' + inputID + '"/>';

+ 5 - 5
src/main/webapp/public/resources/js/configeditor.js

@@ -872,7 +872,7 @@ PWM_CFGEDIT.drawHtmlOutlineForSetting = function(settingInfo, options) {
             + settingInfo['description'] + '</div>';
     }
 
-    htmlBody += '<div class="pane-settingValue" id="table_setting_' + settingKey + '" style="border:0 none">'
+    htmlBody += '<div class="pane-settingValue noborder" id="table_setting_' + settingKey + '">'
         + '</div>' // close setting;
         + '</div>' // close body
         + '<div class="footnote" style="width:100%"><span id="panel-' + settingKey + '-modifyTime"></span></div>'
@@ -1264,14 +1264,14 @@ PWM_CFGEDIT.applyGotoSettingHandlers = function() {
 
 PWM_CFGEDIT.closeMenuPanel = function() {
     console.log('action closeHeader');
-    PWM_MAIN.setStyle('header-warning','display','none');
-    PWM_MAIN.setStyle('button-openMenu','display','inherit');
+    PWM_MAIN.addCssClass('header-warning','nodisplay');
+    PWM_MAIN.removeCssClass('button-openMenu','nodisplay');
 };
 
 PWM_CFGEDIT.openMenuPanel = function() {
     console.log('action openHeader');
-    PWM_MAIN.setStyle('header-warning','display','inherit');
-    PWM_MAIN.setStyle('button-openMenu','display','none');
+    PWM_MAIN.removeCssClass('header-warning','nodisplay');
+    PWM_MAIN.addCssClass('button-openMenu','nodisplay');
 };
 
 

+ 5 - 5
src/main/webapp/public/resources/js/helpdesk.js

@@ -159,7 +159,7 @@ PWM_HELPDESK.generatePasswordPopup = function() {
 PWM_HELPDESK.changePasswordPopup = function() {
     var bodyText = '';
     bodyText += '<span id="message" class="message message-info" style="width: 400px">' + PWM_MAIN.showString('Display_PasswordPrompt') + '</span>';
-    bodyText += '<table style="border: 0"><tr style="border: 0"><td style="border: 0">';
+    bodyText += '<table class="noborder"><tr class="noborder"><td class="noborder">';
     if (PWM_VAR['helpdesk_setting_maskPasswords']) {
         bodyText += '<input type="password" name="password1" id="password1" class="passwordfield" style="width: 260px" autocomplete="off"/>';
     } else {
@@ -167,14 +167,14 @@ PWM_HELPDESK.changePasswordPopup = function() {
     }
     bodyText += '</td>';
     if (PWM_GLOBAL['setting-showStrengthMeter']) {
-        bodyText += '<td style="border:0"><div id="strengthBox" style="visibility:hidden;">';
+        bodyText += '<td class="noborder"><div id="strengthBox" style="visibility:hidden;">';
         bodyText += '<div id="strengthLabel">' + PWM_MAIN.showString('Display_StrengthMeter') + '</div>';
         bodyText += '<div class="progress-container" style="margin-bottom:10px">';
         bodyText += '<div id="strengthBar" style="width:0">&nbsp;</div></div></div></td>';
     }
-    bodyText += '</tr><tr style="border: 0">';
+    bodyText += '</tr><tr class="noborder">';
 
-    bodyText += '<td style="border: 0">';
+    bodyText += '<td class="noborder">';
     if (PWM_VAR['helpdesk_setting_maskPasswords']) {
         bodyText += '<input type="password" name="password2" id="password2" class="passwordfield" style="width: 260px" autocomplete="off"/>';
     } else {
@@ -182,7 +182,7 @@ PWM_HELPDESK.changePasswordPopup = function() {
     }
     bodyText += '</td>';
 
-    bodyText += '<td style="border: 0"><div style="margin:0;">';
+    bodyText += '<td class="noborder"><div style="margin:0;">';
     bodyText += '<img style="visibility:hidden;" id="confirmCheckMark" alt="checkMark" height="15" width="15" src="' + PWM_GLOBAL['url-resources'] + '/greenCheck.png">';
     bodyText += '<img style="visibility:hidden;" id="confirmCrossMark" alt="crossMark" height="15" width="15" src="' + PWM_GLOBAL['url-resources'] + '/redX.png">';
     bodyText += '</div></td>';

+ 1 - 1
src/main/webapp/public/resources/js/main.js

@@ -380,7 +380,7 @@ PWM_MAIN.handleLoginFormSubmit = function(form, event) {
             options['content'] = domForm.toObject(form);
             delete options['content']['processAction'];
             delete options['content']['pwmFormID'];
-            var url = 'Login?processAction=restLogin';
+            var url = 'login?processAction=restLogin';
             var loadFunction = function(data) {
                 if (data['error'] == true) {
                     PWM_MAIN.getObject('password').value = '';

+ 8 - 0
src/main/webapp/public/resources/style.css

@@ -197,6 +197,14 @@ table td.key {
       border-collapse: collapse;
   }
 
+.nopadding {
+    padding: 0;
+}
+
+.nodisplay {
+    display: none;
+}
+
 /* disable ie password reveal */
 input[type=password]::-ms-reveal{display: none;}