From 75da1ce7a7655998960e1ff5ba35376330dbfa75 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 29 Jul 2019 11:09:33 +0200 Subject: [PATCH] :art: iTopWebPage : some syntax highlighting in HEREDOC JS --- application/itopwebpage.class.inc.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 0828594b5..f63bed8af 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -258,7 +258,7 @@ EOF; $sJSDateTimePickerOptions = substr($sJSDateTimePickerOptions, 0, -1).$aMoreJSOptions; } $this->add_script( - <<< EOF + <<< JS function GetUserLanguage() { return $sTimePickerLang; @@ -293,12 +293,12 @@ EOF; }); }); } -EOF +JS ); // Attribute set tooltip on items $this->add_ready_script( - <<').text($(this).attr('data-label')).html(); @@ -325,20 +325,20 @@ EOF position: { corner: { target: 'topMiddle', tooltip: 'bottomLeft' }} }); }); -EOF +JS ); // Make image attributes zoomable $this->add_ready_script( -<<add_init_script( - <<< EOF + <<< JS try { var myLayout; // a var is required because this page utilizes: myLayout.allowOverflow() method @@ -448,11 +448,11 @@ EOF // Do something with the error ! alert(err); } -EOF +JS ); $this->add_ready_script( - <<< EOF + <<< JS // Adjust initial size $('.v-resizable').each( function() @@ -613,7 +613,7 @@ EOF }); } }); -EOF +JS ); $this->add_ready_script(InlineImage::FixImagesWidth()); /* @@ -624,7 +624,7 @@ EOF $sUserPrefs = appUserPreferences::GetAsJSON(); $this->add_script( - <<