Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/HLStyling.js @ 6304

Last change on this file since 6304 was 6304, checked in by dkahn, 13 years ago

#1198 Ongoing styling

File size: 1.1 KB
Line 
1/*!
2Styling for heuristiclab via jQuery
3*/
4
5$(document).ready(
6
7function () {
8
9  $('input:submit, input:reset').each(function () {
10    $(this).replaceWith('<button class="' + $(this).attr('class') + '" name="' + $(this).attr('name') + '" type="' + $(this).attr('type') + '">' + $(this).val() + '</button>');
11  });
12
13
14  $('.hl-dataTable').dataTable(
15  {
16    "bJQueryUI": true
17  }
18
19  );
20
21
22
23  $(".hl-dataTable").addClass("display");
24
25  $(".hl-button-text-plus").button({ icons: { primary: 'ui-icon-plus'} });
26  $(".hl-button-text-back").button({ icons: { primary: 'ui-icon-triangle-1-w'} });
27  $(".hl-icon-delete").button({ icons: { primary: 'ui-icon-close' }, text: false });
28  $(".hl-icon-edit").button({ icons: { primary: 'ui-icon-pencil' }, text: false });
29
30  // Standard Table
31  $(".hl-table th").each(function () {
32
33    $(this).addClass("ui-state-default hl-formHeader");
34
35  });
36  $(".hl-table td").each(function () {
37
38    $(this).addClass("ui-widget-content");
39
40  });
41
42  $(".hl-table td:odd").addClass("odd");
43  $(".hl-table td:even").addClass("even");
44
45}
46);
47
Note: See TracBrowser for help on using the repository browser.