source: server/trunk/web/root/templates/html/explorer/index.html @ 169

Last change on this file since 169 was 169, checked in by grenoya, 14 years ago
  • fix mistakes introduced in r154
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1<!-- $Id$ -->
2<form action="[% c.uri_for('/', c.req.path) %]" id="explorer_d" method="POST">
3    <span id="distribselect">
4    [% INCLUDE 'ajax/forms/distribselect.tt' %]
5    </span>
6    <input type="submit" value="Update view...">
7</form>
8[% c.prototype.observe_form('explorer_d',
9    {
10    url => c.uri_for('/ajax/forms/distribselect', { 'ajax' => 1 }),
11    frequency => 2,
12    update => 'distribselect',
13    }
14) %]
15
16<div style="float: left; border: outset; width: 30%">
17<form action="#" method="POST">
18    Filter to file starting by:
19    <input type="text" id="explorer_filter" name="filename">
20    <span id="explorer_filter_ind" style="display: none;">Re-Loading...</span>
21</form>
22[% c.prototype.observe_field(
23    'explorer_filter',
24    {
25    url => dirurl,
26    frequency => 2,
27    update => 'exp_dir',
28    with => '"ajax=1&filename=" + value',
29    indicator => 'explorer_filter_ind',
30    loading => 'document.getElementById("explorer_filter_ind").style.display = "";',
31    complete => 'document.getElementById("explorer_filter_ind").style.display = "none";',
32    }
33) %]
34<hr>
35
36<div id="exp_dir" style="">
37    Loading...
38</div>
39</div>
40<div id="exp_file" style="float: left; border: outset; width: 60%">
41    Loading...
42</div>
43
44<script type="text/javascript">
45    new Ajax.Updater(
46        'exp_dir',
47        '[% dirurl %]',
48        { asynchronous: 1, parameters: 'ajax=1' }
49    );
50    new Ajax.Updater(
51        'exp_file',
52        '[% fileurl %]',
53        { asynchronous: 1, parameters: 'ajax=1' }
54    );
55</script>
Note: See TracBrowser for help on using the repository browser.