cirandas.net

ref: master

plugins/financial/public/javascripts/financial.js


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
financial = {
  cycle_report: {
    toggle: function(ev) {
      $('.cycle_report').find('.header,.body,.footer').slideToggle();
    },
    add_input: function() {
      var $modal = $('.add-transaction-modal')
      $modal.find("#transaction_direction").val("in")
      $modal.find("#transaction_value").val("")
      $modal.find("#transaction_description").val("")
    },
    add_output: function() {
      var $modal = $('.add-transaction-modal')
      $modal.find("#transaction_direction").val("out")
      $modal.find("#transaction_value").val("")
      $modal.find("#transaction_description").val("")
    }
  }
}