PHP Classes

File: src/Installer/skins/js/config.js.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Installer/skins/js/config.js.twig   Download  
File: src/Installer/skins/js/config.js.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 7 years ago
Size: 703 bytes
 

Contents

Class file image Download
var ledger_defaults = { "file": "~/tmp/logs", "database": "airship_logs" }; var old_driver = "{{ config.ledger.driver|e("html_attr")|default("file") }}"; $("#ledger_driver").on('change', function(e) { var new_driver = $("#ledger_driver").val(); // Update label if (new_driver === "file") { $("#ledger_details_label").html("Log Directory:"); } else { $("#ledger_details_label").html("Database Table:"); } // Swap out details: ledger_defaults[old_driver] = $("#ledger_details").val(); $("#ledger_details").val( ledger_defaults[new_driver] ); // Update the reference to the current driver old_driver = new_driver; });