From d040534a1f1552c30d0af2d6e4a6a9e160796c15 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 2 Jun 2016 17:30:53 +0200 Subject: [PATCH] Deprecate $j global variable used in php files and replace them all with standard jQuery --- api/src/Html.php | 2 +- api/src/Json/Msg.php | 2 +- calendar/sitemgr/class.module_calendar_planner.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Html.php b/api/src/Html.php index 3558e4fb4c..cc5fecea07 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -214,7 +214,7 @@ class Html if($enhanced) { Framework::includeJS('/api/js/jquery/chosen/chosen.jquery.js'); Framework::includeCSS('/api/js/jquery/chosen/chosen.css',null,false); - $out .= "\n"; + $out .= "\n"; } return $out; } diff --git a/api/src/Json/Msg.php b/api/src/Json/Msg.php index bd7810501e..4d0b9d2d75 100644 --- a/api/src/Json/Msg.php +++ b/api/src/Json/Msg.php @@ -104,7 +104,7 @@ abstract class Msg } /** - * Allows to call a jquery function on a selector with given parameters: $j($selector).$func($parmeters) + * Allows to call a jquery function on a selector with given parameters: jQuery($selector).$func($parmeters) * * @param string $selector jquery selector * @param string $method name of the jquery to call diff --git a/calendar/sitemgr/class.module_calendar_planner.inc.php b/calendar/sitemgr/class.module_calendar_planner.inc.php index f5db38798b..a5461403c1 100644 --- a/calendar/sitemgr/class.module_calendar_planner.inc.php +++ b/calendar/sitemgr/class.module_calendar_planner.inc.php @@ -336,7 +336,7 @@ class module_calendar_planner extends Module $tmpl->exec(__METHOD__, $content,$sel_options, array('__ALL__' => true),array(),2); $html .= ob_get_contents(); $html .= '