Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1198 Ongoing styling

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