Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 10207 was 6319, checked in by dkahn, 14 years ago

#1198 Ongoing styling

File size: 1.4 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    "sScrollX": "100%",
18
19  }
20
21  );
22
23
24
25  $(".hl-dataTable").addClass("display");
26
27  $(".hl-button-text-plus").button({ icons: { primary: 'ui-icon-plus'} });
28  $(".hl-button-text-signon").button({ icons: { primary: 'ui-icon-key'} });
29  $(".hl-button-text-back").button({ icons: { primary: 'ui-icon-triangle-1-w'} });
30  $(".hl-icon-delete").button({ icons: { primary: 'ui-icon-close' }, text: false });
31  $(".hl-icon-edit").button({ icons: { primary: 'ui-icon-pencil' }, text: false });
32  $(".hl-icon-view").button({ icons: { primary: ' ui-icon-arrowthick-1-e' }, text: false });
33  $(".hl-icon-refresh").button({ icons: { primary: ' ui-icon-refresh' }, text: false });
34 
35  // Standard Table
36  $(".hl-table th").each(function () {
37
38    $(this).addClass("ui-state-default hl-formHeader");
39
40  });
41  $(".hl-table td").each(function () {
42
43    $(this).addClass("ui-widget-content");
44
45  });
46
47  $(".hl-table td:odd").addClass("odd");
48  $(".hl-table td:even").addClass("even");
49
50}
51);
52
Note: See TracBrowser for help on using the repository browser.