edit-task
Home
Up
Delete
Task Name:
Task Description:
] NEW SCRIPT VERSION sospep -v-005 ] UPD FIX-PRB-6765 selects not filling
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">SCRIPT-VERSION - money.js -v-005</h1> <h2>[previously]</h2> <ol> <li><strong>[2017-01-08][REFERENCE] NEW SCRIPT</strong></li> <ol> <li>x] # 5846 - <a href="/view/task?id=5846" target="_blank">SCRIPT-money.js</a> - definition and description of this script, list of all versions with description</li> </ol></ol> <h2>[currently]</h2> <ol> <li><span style="background-color: #c0c0c0;"><strong>[2017-01-08] NEW SCRIPT VERSION - v-005</strong></span></li> <ol> <li>x] # 6772 - <a href="/view/task?id=6772" target="_blank">SCRIPT-VERSION-money.js -v-005</a> (this)</li> <li>] -v-005 remove many fillSelect codeblock methods and use 1, pass arg with 'select' to fill </li> </ol> <li><strong>[00:00] NEW PRB</strong></li> <ol> <li>] # 6765 - <a href="/view/task?id=6765" target="_blank">FIX-PRB-6765</a> - ] selects not populating with data in browser (chrome), </li> <li>] continue replacing code blocks with </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - cleanup - remove populate select event handlers for each of the selects, replace with call to </li> </ol> <li><span style="background-color: #c0c0c0;"><strong>[2017-01-09] NEW task IN </strong></span></li> <ol> <li>x] cleanup START = 540 loc, FINISH = 340</li> <li>x] cut fillL2sel original version</li> <li>x] cut CB-009-001 FromAccount.change - orig change VS replace .on('change', ...</li> <li><span style="background-color: #ffff99;">*] HAVE CB-009-001 FromAccount.on('change', ... // works in IE,FF, not in chr</span></li> <li>x] cut CB-009-002 FROM-Inventory </li> <li>x] cut CB-009-003 FROM-ItemCategory </li> <li>x] TEST - x] chr = PASS, x] ie = PASS, x] ff = PASS</li> <li>x] CUT CB-009-004 ToAccount change</li> <li>x] CUT CB-009-005 To-Inventory</li> <li>x] CUT CB-009-006 To-ItemCategory</li> <li>x] TEST - x] chr = PASS, x] ie = PASS , ] ff = ?</li> <li>x] CUT CB-009-007 Payee</li> <li>x] CUT CB-009-008 Payee-Member</li> <li>x] CUT CB-009-009 Payee-MemberGroup</li> <li>x] TEST - x] chr = PASS, x] ie = PASS , ] ff = ?</li> </ol> <li><span style="background-color: #c0c0c0;"><strong>[2017-01-10][09:30] NEW task IN </strong></span></li> <ol> <li>x] EDIT 'view-transactions' to bold the feild labels</li> </ol> <li><span style="background-color: #c0c0c0;"><strong><strong>[2017-01-11]</strong>[09:30] NEW task IN </strong></span></li> <ol> <li>x] EDIT 'view-transactions' - add bootstrap class list-group to PG money, </li> <li>] add class = 'list-group-item' to money.js code-block# # </li> </ol> <li><strong>[00:00] NEW task </strong></li> <ol> <li>] 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 </li> <li>x] if hidden we show it, if not hidden - create it</li> <li>] BUT if not hidden - it will 'create' it again, ex click menu 'view-transactions' when on add-transaction</li> <li>*] this appears to fixes PRB - funky $ vals in chrome/&& ...</li> </ol> <li><strong>[00:00] NEW PROBLEM</strong></li> <ol> <li>x] PROBLEM = - set $ vals are funky in chrome, work </li> <li>*] 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 )</li> <li>x] SOLUTION - see # 7 </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] EDIT 'add-continue' button click </li> <li>] attach to higher level element(div formWrapper) VS directly to event </li> <li>x] this FIXES-PRB buttions in chrome, not working - </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] EDIT 'add-view' button click, attach to higher level element, same as above</li> </ol> <li><strong>[00:00] NEW PROBLEM</strong></li> <ol> <li>x] # PROBLEM = buttons in chrome, are not working - ] save & continue ] save & view, x] exit (works) ?? </li> <li>x] SOLUTION = see # 9, 10 </li> </ol> <li><span style="background-color: #c0c0c0;"><strong>[2017-01-12] NEW task IN </strong></span></li> <ol> <li>x] use placeholder attribute VS pre setting the value feild</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] <strong>pre set select values</strong> in L1 FromAccount select to 'money', value = 17, using change() method </li> <li>*] see NOTES below re jq select setting values, </li> <li>x] added function setSelectValues , </li> <li>x] called function IN addTransaction_init</li> <li>x] added function setTimeout() to call</li> <li>x] pre set selected value in L1 ToAccount select to 'mone', value = 17, using </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>] <strong>add example 'favorite' links</strong></li> <li>] click favorite will set value of 'bottom level select' </li> <li>] ? = what about setting upper parent level values </li> </ol> <li><span style="background-color: #c0c0c0;"><strong>[2017-01-13][00:00] NEW task IN </strong></span></li> <ol> <li>x] # # - added eh function for class .favLink, </li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>x] # # - added SAMPLE DATA - "fav = cash", now have - visa, -m/c, -cash</li> </ol> <li><strong>[00:00] NEW task IN </strong></li> <ol> <li>] # # - </li> <li>] test = exsting favorites for 'payee' 'people', </li> <li>] result = PASS, </li> <li>] NEED = for each dlgTransaction, create a seperate set of favorites, ( 3 queries, ) FromAccount, ToAccount, Payee </li> <li>] </li> </ol> <li><strong><strong>[2017-01-14]</strong>[00:00] NEW task IN </strong></li> <ol> <li>] </li> </ol> <li><strong><strong>[2017-01-15]</strong>[00:00] NEW task IN </strong></li> <ol> <li>] </li> </ol> <li><strong>[2017-01-16][00:00] NEW task IN </strong></li> <ol> <li>x] push </li> <li>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)</li> <li>x] renamed favLink to favLinkFROM, favLinkTO, favLinkPAYEE</li> <li>i] added seperate eh functions for favLinkTO, favLinkPAYEE</li> </ol> <li><strong>[2017-01-17][00:00] NEW task IN </strong></li> <ol> <li>] build if statements to add favorites to each individual select block (FROM, TO, PAYEE)</li> <li>*] currently 'data' FROM is hardcoded, TO: is empty, PAYEE - db selection</li> <li>x] fix eh for PAYEE click</li> </ol></ol> <h2>[next]</h2> <ol> <li><strong>[2017-01-11][00:00] NEW PROBLEM </strong></li> <ol> <li>] PROBLEM = add and view, NEEDS delay (setTimout), IF </li> </ol> <li><strong>[00:00] NEW PROBLEM </strong></li> <ol> <li>] PROBLEM = slow loading</li> </ol> <li><strong>>[00:00] NEW FEATURE</strong></li> <ol> <li>] # 5100 - responsive - ] </li> </ol> <li><strong>>[2012-09-30][00:00] NEW task IN FWD</strong></li> <ol> <li>] L2 populate - l1 is set but need to change it </li> <li>] ADD - CODEz for saveFavorite</li> <li>] ADD - CODEz for click favorite </li> </ol></ol> <h2>[reference]</h2> <div><ol> <li>] # # - CREATE-article# LIST-money-docs</li> </ol></div> <div><strong>[2017-01-19]</strong></div> <div> <div>- use queries to pull 'favorites' data</div> <div>- use for loop to fill 'favorites' for each of the 3 </div> <div>- DATA set priority = -9 on selected O.item accounts (payFrom)</div> <div>- DATA set priority = -8 on selected O.item accounts (billto ) // otherwise IF all use -9 from/to accounts are mixed </div> <div>- get value of account form 'fav' click</div> <div>- set value of last level select </div> <div>- TEST ( select ?changes?, but submitted val in db is 0)</div> <div>- TRY use addOption to add desired option as selected</div> <div>- TEST pass</div> <div>- REM out block body.delegate. </div> <div>- use #/ as a vs # to prevent jumping to top of page </div> <div>http://stackoverflow.com/questions/3252730/how-to-prevent-a-click-on-a-link-from-jumping-to-top-of-page-in-jquery</div> </div> <div> <pre> </pre> <hr /> <pre>http://stackoverflow.com/questions/178325/how-do-i-check-if-an-element-is-hidden-in-jquery</pre> <pre>http://stackoverflow.com/questions/4592493/check-if-element-exists-in-jquery</pre> <pre>http://stackoverflow.com/questions/10312963/javascript-settimeout</pre> </div> <div><hr /></div> <div> <pre> // $("div #selL1From select").val("17").change(); <strong>$("#FromAccount").val("17").change(); </strong> </pre> <pre>// 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');</pre> <pre>REF = http://stackoverflow.com/questions/13343566/set-select-option-selected-by-value </pre> <pre> </pre> <hr /></div>