Dotclear

source: tests/functional/fixtures/form_media_disabled.html @ 1724:4cc223c99439

Revision 1724:4cc223c99439, 1.4 KB checked in by Nicolas <nikrou77@…>, 12 years ago (diff)

[Tests] Add tests for media uploader
Refactoring of _media.js : put all code in a jquery plugin to make
it easy to test and to avoid polluting global namespace.
Use same jquery for tests and for admin

Need to add more tests for media uploader
Fix indentation for all js

Line 
1<div>
2  <h4>Add files</h4>
3
4  <form id="fileupload" action="media.php?popup=0&amp;post_id=" method="post" enctype="multipart/form-data" aria-disabled="false">
5    <p>
6      <input type="hidden" name="MAX_FILE_SIZE" value="2097152"  />
7      <input type="hidden" name="xd_check" value="7a87b8c0d60e38a05b1b8cf524d08a5594222763"  />
8    </p>
9    <div class="fileupload-ctrl">
10      <p class="queue-message"></p>
11      <ul class="files"></ul>
12    </div>
13    <div class="fileupload-buttonbar clear">
14      <p>
15     <label for="upfile"><span class="add-label one-file">Choose file</span></label>
16     <button class="button add">Choose files</button>
17     <input type="file" id="upfile" name="upfile[]" data-url="media.php?popup=0&amp;post_id=" />
18      </p>
19      <p class="one-file">
20     <label for="upfiletitle">Title:</label>
21     <input type="text" size="35" name="upfiletitle" id="upfiletitle" maxlength="255"  />
22      </p>
23      <p class="one-file">
24     <label for="upfilepriv" class="classic">Private</label>
25     <input type="checkbox" name="upfilepriv" value="1" id="upfilepriv"  />
26      </p>
27      <p class="clear">
28     <button class="button clean">Refresh</button>
29     <input class="button cancel one-file" type="reset" value="Clear All"/>
30     <input class="button start" type="submit" value="Upload"/>
31      </p>
32    </div>
33    <p style="clear:both;">
34      <input type="hidden" name="d" value="."  />
35    </p>
36  </form>
37</div>
Note: See TracBrowser for help on using the repository browser.

Sites map