From: Alan Pippin Date: Thu, 28 Oct 2010 02:46:15 +0000 (-0600) Subject: Made jquery variables application globals X-Git-Tag: release_1_1_0^2^2 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/static/checkmark.gif?a=commitdiff_plain;h=refs%2Fremotes%2Fgithub%2Fowenleonard%2Fht_sandbox;p=eq%2F.git Made jquery variables application globals --- diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 35357da..8573136 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -79,6 +79,9 @@ class tc include("setup/tc_config"); } + $this->jquery_url = $GLOBALS['phpgw']->link('inc/jquery/jquery.js'); + $this->jquery_tablesorter_url = $GLOBALS['phpgw']->link('inc/jquery/jquery.tablesorter.js'); + $this->script_path = "$this->application_path"."/bin"; $this->max_presidency_members = 99; $this->max_appointments = 32768; @@ -417,7 +420,7 @@ class tc $this->t->set_block('ht_sandbox_t','companionship_table_list','ct_list'); $this->t->set_var('submit_action',$GLOBALS['phpgw']->link('/tc/index.php','menuaction=tc.tc.ht_sandbox&action=add')); - $this->t->set_var('jquery_url',$GLOBALS['phpgw']->link('inc/jquery/jquery.js')); + $this->t->set_var('jquery_url',$this->jquery_url); $action = get_var('action',array('GET','POST')); @@ -3782,8 +3785,8 @@ class tc { $this->t->set_file(array('org_view_t' => 'org_view.tpl')); $this->t->set_block('org_view_t','calling_list','list'); - $this->t->set_var('jquery_url',$GLOBALS['phpgw']->link('inc/jquery/jquery.js')); - $this->t->set_var('jquery_tablesorter_url',$GLOBALS['phpgw']->link('inc/jquery/jquery.tablesorter.js')); + $this->t->set_var('jquery_url',$this->jquery_url); + $this->t->set_var('jquery_tablesorter_url',$this->jquery_tablesorter_url); $sql = "SELECT * FROM tc_calling AS tc JOIN tc_individual AS ti where tc.individual=ti.individual ORDER BY name ASC"; $this->db->query($sql,__LINE__,__FILE__);