PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/public/files_list.js

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/public/files_list.js  >  Download  
File: src/Cabin/Bridge/public/files_list.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 2 years ago
Size: 481 bytes
 

Contents

Class file image Download
$(document).ready(function() {
    $("#files_list_cabin").on('change', function() {
        var cabin = $(this).val()
            .replace("/", "");
        window.location = $("#bridge_main_menu_left").data('linkprefix') +
            $("#bridge_files_navigation").data('middle') + "/" +
            cabin;
    });

    $("#add-files").click(function() {
        $("#new-file-wrapper").append(
            '<li><input type="file" name="new_files[]" /></li>'
        );
    });
});