1 include javascript files client side, not from smarty.
2 as i've separated very clearly files available as htdocs and files that are not.
4 and besides, js files should be (can be) cached at client side, which is good.
6 glen 2005-07-30, 2005-11-30
8 --- ./js/expandable_cell.js 2005-07-30 17:47:12.000000000 +0300
9 +++ /tmp/expandable_cell.js 2005-07-30 20:18:01.000000000 +0300
13 var expanding = false;
15 // expands the cell specified by ecID and msgID. This will initiate the call to the remote script to get the
21 \ No newline at end of file
22 --- ./js/httpclient.js 2005-07-30 17:47:12.000000000 +0300
23 +++ /tmp/httpclient.js 2005-07-30 20:18:01.000000000 +0300
27 function HTTPClient() {};
29 HTTPClient.prototype = {
35 \ No newline at end of file
36 --- ./templates/view.tpl.html 2005-07-30 17:47:13.000000000 +0300
37 +++ /tmp/view.tpl.html 2005-07-30 20:18:01.000000000 +0300
39 {include file="header.tpl.html" extra_title=$extra_title}
40 {include file="navigation.tpl.html"}
41 -<script language="javascript">
42 -{include file="js/httpclient.js"}
43 -{include file="js/expandable_cell.js"}
45 +<script src="{$rel_url}js/httpclient.js"></script>
46 +<script src="{$rel_url}js/expandable_cell.js"></script>
48 <table width="400" align="center">
50 --- ./templates/mail_queue.tpl.html 2005-07-30 17:47:13.000000000 +0300
51 +++ /tmp/mail_queue.tpl.html 2005-07-30 20:21:46.000000000 +0300
54 <div class="default" align="center">Sorry, you do not have permission to view this page</div>
56 -<script language="javascript">
57 -{include file="js/httpclient.js"}
58 -{include file="js/expandable_cell.js"}
60 +<script src="{$rel_url}js/httpclient.js"></script>
61 +<script src="{$rel_url}js/expandable_cell.js"></script>
63 <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
65 --- eventum-localization-dev2/templates/reports/recent_activity.tpl.html~ 2006-06-02 01:01:26.205901620 +0300
66 +++ eventum-localization-dev2/templates/reports/recent_activity.tpl.html 2006-06-02 01:02:30.727354382 +0300
68 {capture assign="extra_title"}{t}Recent Activity{/t}{/capture}
69 {include file="header.tpl.html" extra_title=$extra_title}
70 -<script language="javascript">
71 -{include file="../js/httpclient.js"}
72 -{include file="../js/expandable_cell.js"}
74 +<script language="javascript" src="{$rel_url}js/httpclient.js"></script>
75 +<script language="javascript" src="{$rel_url}js/expandable_cell.js"></script>
77 <form method="post" action="{$smarty.server.PHP_SELF}" name="recent_activity">
78 <input type="hidden" name="cat" value="generate">