task

SCRIPT-VERSION - money.js -v-005

[previously]

  1. [2017-01-08][REFERENCE] NEW SCRIPT
    1. x] # 5846 - SCRIPT-money.js - definition and description of this script, list of all versions with description

[currently]

  1. [2017-01-08] NEW SCRIPT VERSION - v-005
    1. x] # 6772 - SCRIPT-VERSION-money.js -v-005 (this)
    2. ] -v-005 remove many fillSelect codeblock methods and use 1, pass arg with 'select' to fill 
  2. [00:00] NEW PRB
    1. ] # 6765 - FIX-PRB-6765 - ] selects not populating with data in browser (chrome), 
    2. ] continue replacing code blocks with 
  3. [00:00] NEW task IN 
    1. x] # # - cleanup - remove populate select event handlers for each of the selects, replace with call to 
  4. [2017-01-09] NEW task IN 
    1. x] cleanup START = 540 loc, FINISH = 340
    2. x] cut fillL2sel original version
    3. x] cut CB-009-001 FromAccount.change - orig change VS replace .on('change', ...
    4. *] HAVE CB-009-001 FromAccount.on('change', ... // works in IE,FF, not in chr
    5. x] cut CB-009-002 FROM-Inventory 
    6. x] cut CB-009-003 FROM-ItemCategory 
    7. x] TEST - x] chr = PASS, x] ie = PASS, x] ff = PASS
    8. x] CUT CB-009-004 ToAccount change
    9. x] CUT CB-009-005 To-Inventory
    10. x] CUT CB-009-006 To-ItemCategory
    11. x] TEST - x] chr = PASS, x] ie = PASS , ] ff = ?
    12. x] CUT CB-009-007 Payee
    13. x] CUT CB-009-008 Payee-Member
    14. x] CUT CB-009-009 Payee-MemberGroup
    15. x] TEST - x] chr = PASS, x] ie = PASS , ] ff = ?
  5. [2017-01-10][09:30] NEW task IN 
    1. x] EDIT 'view-transactions' to bold the feild labels
  6. [2017-01-11][09:30] NEW task IN 
    1. x] EDIT 'view-transactions' - add bootstrap class list-group to PG money, 
    2. ] add class = 'list-group-item' to money.js code-block# # 
  7. [00:00] NEW task 
    1. ] ADD if block to test for element add-transaction, don't run init code if 'add-transaction view' exists, only show exisiting view, solve problem with money setter lins 
    2. x] if hidden we show it, if not hidden - create it
    3. ] BUT if not hidden - it will 'create' it again, ex click menu 'view-transactions' when on add-transaction
    4. *] this appears to fixes PRB - funky $ vals in chrome/&& ...
  8. [00:00] NEW PROBLEM
    1. x] PROBLEM = - set $ vals are funky in chrome, work 
    2. *] OK in IE, MAYBE not, OK on initial load BUT after click view reports then back to add transaction - vals triple (ex 100 = 300, 1 = 3 )
    3. x] SOLUTION - see # 7 
  9. [00:00] NEW task IN 
    1. x] EDIT 'add-continue' button click 
    2. ] attach to higher level element(div formWrapper) VS directly to event 
    3. x] this FIXES-PRB buttions in chrome, not working - 
  10. [00:00] NEW task IN 
    1. x] EDIT 'add-view' button click, attach to higher level element, same as above
  11. [00:00] NEW PROBLEM
    1. x] # PROBLEM =   buttons in chrome, are not working - ] save & continue ] save & view, x] exit (works) ?? 
    2. x] SOLUTION = see # 9, 10 
  12. [2017-01-12] NEW task IN 
    1. x] use placeholder attribute VS pre setting the value feild
  13. [00:00] NEW task IN 
    1. x] pre set select values in L1 FromAccount select to 'money', value = 17, using change() method 
    2. *] see NOTES below re jq select  setting values, 
    3. x] added function setSelectValues , 
    4. x] called function IN addTransaction_init
    5. x] added function setTimeout() to call
    6. x] pre set selected value in L1 ToAccount select to 'mone', value = 17, using  
  14. [00:00] NEW task IN 
    1. ] add example 'favorite' links
    2. ] click favorite will set value of 'bottom level select' 
    3. ] ? = what about setting upper parent level values 
  15. [2017-01-13][00:00] NEW task IN 
    1. x] # # - added eh function for class .favLink, 
  16. [00:00] NEW task IN 
    1. x] # # - added SAMPLE DATA - "fav = cash", now have - visa, -m/c, -cash
  17. [00:00] NEW task IN 
    1. ] # # -  
    2. ] test =  exsting favorites for 'payee' 'people', 
    3. ] result = PASS, 
    4. ] NEED = for each dlgTransaction, create a seperate set of favorites, ( 3 queries, ) FromAccount, ToAccount, Payee 
  18. [2017-01-14][00:00] NEW task IN 
  19. [2017-01-15][00:00] NEW task IN 
  20. [2017-01-16][00:00] NEW task IN 
    1. x] push 
    2. x] FIX set/append 'selection' to select box title, EX from: "Select Accout to PAY FROM:" to: "Select Accout to PAY FROM:Visa" ( after user has selected PAY choice)
    3. x] renamed favLink to favLinkFROM, favLinkTO, favLinkPAYEE
    4. i] added seperate eh functions for favLinkTO, favLinkPAYEE
  21. [2017-01-17][00:00] NEW task IN 
    1. ] build if statements to add favorites to each individual select block (FROM, TO, PAYEE)
    2. *] currently 'data'  FROM is hardcoded, TO: is empty, PAYEE - db selection
    3. x] fix eh for PAYEE click

[next]

  1. [2017-01-11][00:00] NEW PROBLEM 
    1. ] PROBLEM =  add and view, NEEDS delay (setTimout), IF 
  2. [00:00] NEW PROBLEM 
    1. ] PROBLEM =  slow loading
  3. >[00:00] NEW FEATURE
    1. ] # 5100 - responsive - ] 
  4. >[2012-09-30][00:00] NEW task IN FWD
    1. ] L2 populate - l1 is set  but need to change it 
    2. ] ADD - CODEz for saveFavorite
    3. ] ADD - CODEz for click favorite 

[reference]

  1. ] # # - CREATE-article# LIST-money-docs
[2017-01-19]
- use queries to pull 'favorites' data
- use for loop to fill 'favorites' for each of the 3 
- DATA set priority = -9 on selected O.item accounts (payFrom)
- DATA set priority = -8 on selected O.item accounts (billto ) // otherwise IF all use -9 from/to accounts are mixed 
- get value of account form 'fav' click
- set value of last level select 
- TEST ( select ?changes?, but submitted val in db is 0)
- TRY use addOption to add desired option as selected
- TEST pass
- REM out block body.delegate. 
- use #/ as a vs # to prevent jumping to top of page 
http://stackoverflow.com/questions/3252730/how-to-prevent-a-click-on-a-link-from-jumping-to-top-of-page-in-jquery
 

http://stackoverflow.com/questions/178325/how-do-i-check-if-an-element-is-hidden-in-jquery
http://stackoverflow.com/questions/4592493/check-if-element-exists-in-jquery
http://stackoverflow.com/questions/10312963/javascript-settimeout

  // $("div #selL1From select").val("17").change();
  $("#FromAccount").val("17").change();   
// WORKS $('#FromAccount option[value=17]').attr('selected','selected'); but L2 select is not populated
  //$('select[name=Select-InventoriesInWarehouse-a] option[value=17]').attr('selected','selected');
REF = http://stackoverflow.com/questions/13343566/set-select-option-selected-by-value 
 

Details Photos Edit more

Details

ID: 6772

NAME: SCRIPT-VERSION-money-v-005

DESCRIPTION: ] NEW SCRIPT VERSION sospep -v-005 ] UPD FIX-PRB-6765 selects not filling

START DATE TIME: 2017-01-09 21:19:02

EST DURATION: 01:00:00

END DATE TIME: 2017-01-09 22:19:02

STATUS: Completed

PRIORITY: -5

OWNER ID: 1

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities