diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-07-14 20:54:59 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-07-14 20:54:59 +0000 |
| commit | 4e02220001b57202fdad1a05fc472b35d18cf5d7 (patch) | |
| tree | a9c018cd5ed9f4517042c83f4d36f4ed88c67171 /scripts | |
| parent | f85d2da9466244b379cf2ba13a046ce31ab7a3b9 (diff) | |
| download | liberty-4e02220001b57202fdad1a05fc472b35d18cf5d7.tar.gz liberty-4e02220001b57202fdad1a05fc472b35d18cf5d7.tar.bz2 liberty-4e02220001b57202fdad1a05fc472b35d18cf5d7.zip | |
move ajax file browser to kernel and rename js file and class, make use of new js urls and add extensive usage instructions for ajax file browser.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/FileBrowser.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/FileBrowser.js b/scripts/FileBrowser.js deleted file mode 100644 index d502fc6..0000000 --- a/scripts/FileBrowser.js +++ /dev/null @@ -1,35 +0,0 @@ -// We use Mochikit library for AJAX
-FileBrowser = {
- "load": function( configName ) {
- if( configName ) {
- BitAjax.showSpinner();
- doSimpleXMLHttpRequest( "/liberty/ajax_file_browser.php", merge( {ajax_path_conf:configName} )).addCallback( this.browseCallback, "ajax_load" );
- document.getElementById( "ajax_load_title" ).innerHTML = '';
- BitAjax.hideSpinner();
- }
- },
-
- "browse": function( relPath, state, configName ) {
- if( relPath ) {
- BitAjax.showSpinner();
- if( state == 'close' ) {
- document.getElementById( relPath ).title = "open";
- document.getElementById( relPath+"-bitInsert" ).innerHTML = '';
- if( document.getElementById( "image-"+relPath )) {
- document.getElementById( "image-"+relPath ).src = bitIconStyleDir+"small/folder.png";
- }
- } else {
- document.getElementById(relPath).title = "close";
- if( document.getElementById( "image-"+relPath )) {
- document.getElementById( "image-"+relPath ).src = bitIconStyleDir+"small/folder-open.png";
- }
- doSimpleXMLHttpRequest( "/liberty/ajax_file_browser.php", merge( {relpath:relPath,ajax_path_conf:configName} )).addCallback( this.browseCallback, relPath+"-bitInsert" );
- }
- BitAjax.hideSpinner();
- }
- },
-
- "browseCallback": function( insertID, result ) {
- document.getElementById( insertID ).innerHTML = result.responseText;
- }
-}
|
