ignore "ui-state-error" class on close()
[mkws-moved-to-github.git] / experiments / spclient / index-popup.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo client</title>
5     <link rel="stylesheet" href="mkwsStyle.css" />
6     <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
7     <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
8     <script type="text/javascript" src="http://mkws.indexdata.com/libjs-pz2/pz2api.1.js"></script>
9     <script type="text/javascript" src="mkws.js"></script>
10
11     <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
12         <style>
13                 body { font-size: 62.5%; }
14                 label, input { display:block; }
15                 input.text { margin-bottom:12px; width:95%; padding: .4em; }
16                 fieldset { padding:0; border:0; margin-top:25px; }
17                 h1 { font-size: 1.2em; margin: .6em 0; }
18                 div#users-contain { width: 350px; margin: 20px 0; }
19                 div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
20                 div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
21                 .ui-dialog .ui-state-error { padding: .3em; }
22                 .validateTips { border: 1px solid transparent; padding: 0.3em; }
23         </style>
24
25         <script>
26         $(function() {
27                 $( "#dialog-form" ).dialog({
28                         closeOnEscape: true,
29                         autoOpen: false,
30                         height: 600,
31                         width: 740,
32                         modal: true,
33                         resizable: true,
34                         buttons: {
35                                 Cancel: function() {
36                                         $( this ).dialog( "close" );
37                                 }
38                         },
39                         close: function() {
40                                 // allFields.val( "" ).removeClass( "ui-state-error" );
41                         }
42                 });
43
44                 $( "#create-user" )
45                         .button()
46                         .click(function() {
47                                 $( "#dialog-form" ).dialog( "open" );
48                         });
49         });
50         </script>
51   </head>
52   <body>
53
54   <div id="dialog-form" title="Search Box">
55     <script type="text/javascript">
56       mkws_config = { switch_menu: false, lang_menu: false, query_width: 40 };
57       jQuery.pazpar2();
58     </script>
59   </div>
60
61   <div id="users-contain" class="ui-widget"></div>
62
63   <button id="create-user">Open Search Box</button>
64
65   </body>
66 </html>