Advertisement
Guest User

Untitled

a guest
May 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function NmbrsController(NmbrsView) {
  2.  
  3. NmbrsView.UrenCodeBox().on("change", UrenCodeBoxChangeCallback)
  4. function UrenCodeBoxChangeCallback() {
  5. SetKlant(); // old code
  6. if ($(this).val() == "240f06ee-158e-423e-89ca-a7bc99b2073e") {
  7. SearchForRuns(NmbrsView.SelectedRelatie())
  8. //SearchForRuns()
  9. }
  10. SetKlant(); // old code
  11. };
  12.  
  13. function SearchForRuns(SelectedRelatie) {
  14. console.log(SelectedRelatie)
  15. }
  16. };
  17. function NmbrsView() {
  18. function UrenCodeBox() { return $("select#activiteiten_lijst") };
  19. this.UrenCodeBox = UrenCodeBox;
  20.  
  21. function RelatieBox() { return $("select#klant"); };
  22. this.SelectedRelatie = function(){ return RelatieBox().val(); }
  23. };
  24.  
  25. new NmbrsController(new NmbrsView() )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement