Revision 9878
Added by Lauren Walker almost 8 years ago
entryForm.tmpl | ||
---|---|---|
1493 | 1493 |
[% cnt = cnt + 1 %] |
1494 | 1494 |
[% END %] |
1495 | 1495 |
[% END %] |
1496 |
</table> |
|
1497 |
|
|
1498 |
<script language="JavaScript" type="text/JavaScript"> |
|
1499 |
var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10); |
|
1500 |
multi_selector.addElement( document.getElementById( 'file_element' ) ); |
|
1501 |
</script> |
|
1502 |
|
|
1503 |
|
|
1496 |
</table> |
|
1504 | 1497 |
</div> |
1505 | 1498 |
</div> |
1506 | 1499 |
|
Also available in: Unified diff
Move the "MultiSelector" JS from the entryForm.tmpl to the entryForm.js. This ensures that the JS will run after all the functions in entryForm.js are declared. This was causing JS bugs in the registry and metacatui.