Deprecate $j global variable used in php files and replace them all with standard jQuery

This commit is contained in:
Hadi Nategh 2016-06-02 17:30:53 +02:00
parent 033ba0159f
commit d040534a1f
3 changed files with 3 additions and 3 deletions

View File

@ -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 .= "<script>var lab = egw_LAB || \$LAB; lab.wait(function() {\$j(function() {if(\$j().chosen) \$j('select[name=\"$name\"]').chosen({width: '100%'});});})</script>\n";
$out .= "<script>var lab = egw_LAB || \$LAB; lab.wait(function() {\jQuery(function() {if(\jQuery().chosen) \jQuery('select[name=\"$name\"]').chosen({width: '100%'});});})</script>\n";
}
return $out;
}

View File

@ -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

View File

@ -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 .= '<script>'
. ' window.egw_LAB.wait(function() {$j(function() {'
. ' window.egw_LAB.wait(function() {jQuery(function() {'
. 'app.calendar.set_state(' . json_encode(array(
'owner' => $search_params['owner'],
'sortby' => $ui->sortby,