Skip to content

Commit

Permalink
QOLDEV-599 Lint error, and others (#1185)
Browse files Browse the repository at this point in the history
* QOLDEV-599 Lint error, and others

* QOLDEV-599 crossorigin anonymous for css files
  • Loading branch information
ghazal-salehi authored Sep 18, 2023
1 parent bb4ef66 commit 97cc757
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/javascript">
$.getScript('https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', function () {
$('head').append($("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css' type='text/css' media='screen' />"));
$('head').append($("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css' crossorigin='anonymous' type='text/css' media='screen' />"));
});
document.addEventListener("DOMContentLoaded", function(event) {
const script = document.createElement('script');
Expand Down
5 changes: 2 additions & 3 deletions .storybook/previewMainTemplate.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@

<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- custom qld online code start -->
<link href="//fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic" rel="stylesheet" type="text/css" />
<link href="./assets/v4/latest/css/qg-main.css" rel="stylesheet" type="text/css" media="all">
<link href="//fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic" rel="stylesheet" crossorigin="anonymous" type="text/css" />
<noscript>
<link href="./assets/v4/latest/css/qg-noscript.css" rel="stylesheet" type="text/css" media="all">
</noscript>
<link href="./assets/v4/latest/css/qg-main.css" rel="stylesheet" type="text/css" media="all">
<link href="./assets/v4/latest/css/qg-main.css" rel="stylesheet" type="text/css" crossorigin="anonymous" media="all">
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous" type="text/javascript"></script>

<!-- custom qld online code end -->
Expand Down
4 changes: 2 additions & 2 deletions src/assets/_project/_blocks/utils/qg-datatables.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var addQGButtonClass = function() {
$('.sortable-table .dataTables_wrapper a.paginate_button').addClass('qg-btn');
var addQGButtonClass = function () {
$('.sortable-table .dataTables_wrapper a.paginate_button').addClass('qg-btn');
};
$(window).on('load', addQGButtonClass);
$(document).on('change', '.sortable-table select', addQGButtonClass);
3 changes: 1 addition & 2 deletions src/assets/_project/_blocks/utils/qg-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ var handleDatePicker = function() {
// 'qg-date-input' adds a jquery ui datepicker
if ($("input[class*='qg-date-input']").length > 0) {
$.getScript('https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', function () {
$('head').append($("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css' type='text/css' media='screen' />"));
$('head').append($("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css' type='text/css' crossorigin='anonymous' media='screen' />"));
});
}
handleDatePicker();
$(window).on('load', handleDatePicker);

0 comments on commit 97cc757

Please sign in to comment.