]>
Commit | Line | Data |
---|---|---|
7412b798 ER |
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. | |
3 | ||
4 | and besides, js files should be (can be) cached at client side, which is good. | |
5 | ||
92934921 | 6 | glen 2005-07-30, 2005-11-30 |
7412b798 ER |
7 | |
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 | |
10 | @@ -1,5 +1,3 @@ | |
11 | -{literal} | |
12 | - | |
13 | var expanding = false; | |
14 | ||
15 | // expands the cell specified by ecID and msgID. This will initiate the call to the remote script to get the | |
16 | @@ -97,4 +95,3 @@ | |
17 | } | |
18 | return newCells; | |
19 | } | |
20 | -{/literal} | |
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 | |
24 | @@ -1,5 +1,3 @@ | |
25 | -{literal} | |
26 | - | |
27 | function HTTPClient() {}; | |
28 | ||
29 | HTTPClient.prototype = { | |
30 | @@ -49,4 +47,3 @@ | |
31 | } | |
32 | } | |
33 | } | |
34 | -{/literal} | |
35 | \ No newline at end of file | |
465c3ab7 | 36 | --- ./templates/view.tpl.html 2005-07-30 17:47:13.000000000 +0300 |
7412b798 ER |
37 | +++ /tmp/view.tpl.html 2005-07-30 20:18:01.000000000 +0300 |
38 | @@ -1,9 +1,7 @@ | |
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"} | |
44 | -</script> | |
45 | +<script src="{$rel_url}js/httpclient.js"></script> | |
46 | +<script src="{$rel_url}js/expandable_cell.js"></script> | |
47 | {if $issue == ""} | |
48 | <table width="400" align="center"> | |
49 | <tr> | |
465c3ab7 | 50 | --- ./templates/mail_queue.tpl.html 2005-07-30 17:47:13.000000000 +0300 |
7412b798 ER |
51 | +++ /tmp/mail_queue.tpl.html 2005-07-30 20:21:46.000000000 +0300 |
52 | @@ -3,10 +3,8 @@ | |
53 | {if $denied == 1} | |
54 | <div class="default" align="center">Sorry, you do not have permission to view this page</div> | |
55 | {else} | |
56 | -<script language="javascript"> | |
57 | -{include file="js/httpclient.js"} | |
58 | -{include file="js/expandable_cell.js"} | |
59 | -</script> | |
60 | +<script src="{$rel_url}js/httpclient.js"></script> | |
61 | +<script src="{$rel_url}js/expandable_cell.js"></script> | |
62 | <form> | |
63 | <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0"> | |
64 | <tr> | |
465c3ab7 ER |
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 | |
67 | @@ -1,9 +1,7 @@ | |
68 | {capture assign="extra_title"}{t}Recent Activity{/t}{/capture} | |
69 | {include file="header.tpl.html" extra_title=$extra_title} | |
92934921 ER |
70 | -<script language="javascript"> |
71 | -{include file="../js/httpclient.js"} | |
72 | -{include file="../js/expandable_cell.js"} | |
73 | -</script> | |
74 | +<script language="javascript" src="{$rel_url}js/httpclient.js"></script> | |
75 | +<script language="javascript" src="{$rel_url}js/expandable_cell.js"></script> | |
76 | <br /> | |
77 | <form method="post" action="{$smarty.server.PHP_SELF}" name="recent_activity"> | |
78 | <input type="hidden" name="cat" value="generate"> |