Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1198 Ongoing styling

File size: 1.4 KB
RevLine 
[6287]1/*!
2Styling for heuristiclab via jQuery
3*/
4
5$(document).ready(
6
7function () {
8
[6300]9  $('input:submit, input:reset').each(function () {
[6301]10    $(this).replaceWith('<button class="' + $(this).attr('class') + '" name="' + $(this).attr('name') + '" type="' + $(this).attr('type') + '">' + $(this).val() + '</button>');
[6300]11  });
[6287]12
[6300]13
[6287]14  $('.hl-dataTable').dataTable(
15  {
[6319]16    "bJQueryUI": true,
17    "sScrollX": "100%",
18
[6287]19  }
20
21  );
[6304]22
23
24
[6287]25  $(".hl-dataTable").addClass("display");
26
27  $(".hl-button-text-plus").button({ icons: { primary: 'ui-icon-plus'} });
[6316]28  $(".hl-button-text-signon").button({ icons: { primary: 'ui-icon-key'} });
[6304]29  $(".hl-button-text-back").button({ icons: { primary: 'ui-icon-triangle-1-w'} });
[6287]30  $(".hl-icon-delete").button({ icons: { primary: 'ui-icon-close' }, text: false });
31  $(".hl-icon-edit").button({ icons: { primary: 'ui-icon-pencil' }, text: false });
[6306]32  $(".hl-icon-view").button({ icons: { primary: ' ui-icon-arrowthick-1-e' }, text: false });
[6307]33  $(".hl-icon-refresh").button({ icons: { primary: ' ui-icon-refresh' }, text: false });
[6306]34 
[6304]35  // Standard Table
36  $(".hl-table th").each(function () {
[6287]37
[6304]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
[6287]50}
51);
52
Note: See TracBrowser for help on using the repository browser.