/[projects]/dao/DaoAdresseVedligehold/src/main/webapp/index.html
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/webapp/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2928 by torben, Fri Feb 5 11:09:02 2016 UTC revision 3002 by torben, Mon Apr 18 18:56:35 2016 UTC
# Line 2  Line 2 
2    <head>    <head>
3    <head>    <head>
4          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5            
6            <link rel="stylesheet" href="webjars/jquery-ui/1.11.4/jquery-ui.css" />
7    
8          <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" />          <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
9                    
# Line 18  Line 20 
20    
21  <!--  use webjars for dependencies -->  <!--  use webjars for dependencies -->
22          <script src="webjars/jquery/2.1.4/jquery.js"></script>          <script src="webjars/jquery/2.1.4/jquery.js"></script>
23            <script src="webjars/jquery-ui/1.11.4/jquery-ui.js"></script>
24          <script src="webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>          <script src="webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
25                    
26          <script src="webjars/bootstrap-fileinput/4.2.7/js/fileinput.min.js"></script>          <script src="webjars/bootstrap-fileinput/4.2.7/js/fileinput.min.js"></script>
# Line 110  $(document).ready( function() { Line 113  $(document).ready( function() {
113          loadTasks();          loadTasks();
114          setInterval(loadTasks, 5000);          setInterval(loadTasks, 5000);
115                    
116            $("#center").resizable({
117            handles: 'e, w'
118            });
119            
120                    
121          $(document).on('click', '.viewlog', function(event) { // Bind future elements          $(document).on('click', '.viewlog', function(event) { // Bind future elements
122                  var taskid = $(this).attr('taskid');                  var taskid = $(this).attr('taskid');
# Line 149  $(document).ready( function() { Line 156  $(document).ready( function() {
156          });          });
157                    
158                    
159            
160            
161          $("#afstandBtn").click( function(){          $("#afstandBtn").click( function(){
162                  var dist = $("#afstand_distributor").val();                  var dist = $("#afstand_distributor").val();
163                  if (dist == "") {                  if (dist == "") {
# Line 165  $(document).ready( function() { Line 174  $(document).ready( function() {
174                                    
175          });          });
176                    
177            $("#dawaBtn").click( function(){
178                    var regionCode = $("#dawa_region").val();
179    
180                    
181                    
182                    var regionName = $('#dawa_region option:selected').text();
183                    var url = "rest/commands/dawa/" + regionCode + "/" + regionName;
184                    
185                    
186                    $.get(url, function() {
187                            loadTasks(); //Force reload of tasks immediately
188                    } );
189                    
190            });
191    
192            
193  });  });
194    
195  </script>        </script>      
# Line 260  $(document).ready( function() { Line 285  $(document).ready( function() {
285                                                        
286                          </div>                          </div>
287                  </div><!-- Afstand-andenrute panel -->                  </div><!-- Afstand-andenrute panel -->
288                            
289              <div class="panel panel-primary">
290                    <div class="panel-heading">
291                            <h3 class="panel-title">Dawa Indlæsning</h3>
292                            </div>
293                            <div class="panel-body">
294                            
295                              <label for="type">Region:</label>
296                              <select class="form-control" id="dawa_region" name="dawa_region">
297                                <option value="1081">Nordjylland</option>
298                                <option value="1082">Midtjylland</option>
299                                <option value="1083">Syddanmark</option>
300                                <option value="1084">Hovedstaden</option>
301                                <option value="1085">Sjælland</option>
302                                                        
303                              </select>
304                              <br>
305    
306                              
307                              <button class="btn btn-primary" id="dawaBtn">Beregn</button>
308    
309                            </div>
310                    </div> <!-- DAWA -->                    
311                    
312                    
313        </div><!-- rightcol -->        </div><!-- rightcol -->

Legend:
Removed from v.2928  
changed lines
  Added in v.3002

  ViewVC Help
Powered by ViewVC 1.1.20