]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
jQuery UI datepicker is applied to date input fields in the study search form.
authorrkv <rkv@opencascade.com>
Tue, 26 Feb 2013 12:55:14 +0000 (12:55 +0000)
committerrkv <rkv@opencascade.com>
Tue, 26 Feb 2013 12:55:14 +0000 (12:55 +0000)
Workspace/Siman/WebContent/study/searchStudy.jsp

index 17248fc5d3c5f9299523a4d5f8d024636928619d..22499a3c320fc52b3bcaa9dc6b22fe822bb742b0 100644 (file)
 <script>
 $(document).ready(function () {
     initialize('<s:property value="resultState"/>');
+    // Apply jQueryUI datepicker to appropriate input fields
+    $(".dateinput").datepicker({
+        dateFormat: "<s:text name="%{format}"/>".replace("yyyy","yy")
+    });
 });
 </script>
 
@@ -105,15 +109,15 @@ $(document).ready(function () {
                   </s:set>
                   <td><s:text name="field.credate"/>&nbsp;</td>
                   <td><s:text name="field.after"/>&nbsp;</td>
-                  <td><input type="text" name=after size=7 onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" />&nbsp;</td>
+                  <td><input class="dateinput" onChange="changeFilter()" type="text" name=after size="7" onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" />&nbsp;</td>
                   <td><s:text name="field.before"/>&nbsp;</td>
-                  <td><input type="text" name=before size=7 onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" /></td>
+                  <td><input class="dateinput" onChange="changeFilter()" type="text" name=before size="7" onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" /></td>
                 </tr><tr>
                   <td><s:text name="field.lasdate"/>&nbsp;</td>
                   <td><s:text name="field.after"/>&nbsp;</td>
-                  <td><input type="text" name=after size=7 onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" />&nbsp;</td>
+                  <td><input class="dateinput" onChange="changeFilter()" type="text" name=after size="7" onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" />&nbsp;</td>
                   <td><s:text name="field.before"/>&nbsp;</td>
-                  <td><input type="text" name="before" size=7 onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" /></td>
+                  <td><input class="dateinput" onChange="changeFilter()" type="text" name="before" size="7" onKeydown="changeFilter()" title="<s:property value="%{#tipdate}"/>" /></td>
                 </tr>
               </table>
               <table cellpadding="0" cellspacing="0" border="0" class="text">