This should fix most Javascript errors.

This commit is contained in:
James Cole
2017-01-02 10:34:01 +01:00
parent 36f1b6a834
commit f8268a864b
26 changed files with 102 additions and 51 deletions

View File

@@ -8,12 +8,14 @@
* See the LICENSE file for details.
*/
/** global: what, title, breadcrumbs, middleCrumbName, button, piggiesLength, txt */
$(document).ready(function () {
"use strict";
// respond to switch buttons when
// creating stuff:
if (doSwitch) {
if (doSwitch == true) {
updateButtons();
updateForm();
updateLayout();
@@ -35,6 +37,7 @@ function updateForm() {
$('input[name="what"]').val(what);
switch (what) {
default:
case 'withdrawal':
// show source_id and dest_name:
$('#source_account_id_holder').show();