Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1198 Ongoing styling

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