Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jul 14, 2024
1 parent 0e193d2 commit 90d285b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/data_report_layout.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(function($, Drupal, cookies) {
(function ($, Drupal, cookies) {

"use strict";

function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(';');
for(let i = 0; i <ca.length; i++) {
for(let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
Expand Down Expand Up @@ -39,7 +39,6 @@
}
}


function reportOneColumn() {
$(".views-element-container .row-wrapper").removeClass("two-column");
$('.views-element-container .row-wrapper').addClass('one-column');
Expand All @@ -61,7 +60,7 @@
function toggleSidebar() {
$("aside").toggleClass("open");
// wait 200ms before focusing on the input
setTimeout(function(){
setTimeout(function () {
if ( $("aside").is(":visible") ) {
$("input[name='search_api_fulltext']").focus();
}
Expand Down Expand Up @@ -95,5 +94,4 @@
}
};


})(jQuery, Drupal, window.Cookies);

0 comments on commit 90d285b

Please sign in to comment.