This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.customerCreate.rendered = function () { | |
$('.formsubmitter').click(function(e) { | |
e.preventDefault(); | |
var form = '#' + $(this).data('form-id'); | |
$(form).submit(); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.jobCreate.rendered = function() { | |
$("select[name='customerId']" ).change(function(e) { | |
var customerId = $(this).val(); | |
}); | |
}; | |
Template.jobCreate.helpers({ | |
customer: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"chainId": "chain001", | |
"domains": [ | |
"http://www.domain.com", | |
"https://www.domain.com" | |
], | |
"ibes": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="input" type="text"> | |
<br> | |
This is the message: <span id="output"></span> | |
<script type="text/javascript"> | |
var $input = $('#input'); | |
var $output = $('#output'); | |
// A controller for getting/setting the bound variable | |
var message = { | |
content: null, | |
get: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ hotel_id: 80, | |
arrival_date: 2019-04-10T00:00:00.000Z, | |
departure_date: 2019-04-11T00:00:00.000Z, | |
stay_dates: [ | |
{ | |
date: 2019-04-10T00:00:00.000Z, | |
rate_id: 7283, | |
room_type_id: 630, | |
adults: '1', | |
children: 0, |