Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function NmbrsController(NmbrsView) {
- NmbrsView.UrenCodeBox().on("change", UrenCodeBoxChangeCallback)
- function UrenCodeBoxChangeCallback() {
- SetKlant(); // old code
- if ($(this).val() == "240f06ee-158e-423e-89ca-a7bc99b2073e") {
- SearchForRuns(NmbrsView.SelectedRelatie())
- //SearchForRuns()
- }
- SetKlant(); // old code
- };
- function SearchForRuns(SelectedRelatie) {
- console.log(SelectedRelatie)
- }
- };
- function NmbrsView() {
- function UrenCodeBox() { return $("select#activiteiten_lijst") };
- this.UrenCodeBox = UrenCodeBox;
- function RelatieBox() { return $("select#klant"); };
- this.SelectedRelatie = function(){ return RelatieBox().val(); }
- };
- new NmbrsController(new NmbrsView() )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement