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
cities: [{name: 'Rome'}], | |
steps: (function() { | |
console.log('updating steps'); | |
var data = []; | |
$.each(this.cities, function(index, city) { | |
data.push({ |
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
{{view App.TimePickerView name='timepicker'}} | |
App.TimePickerView = Ember.View.extend({ | |
templateName: 'timepicker', | |
didInsertElement: function() { | |
this.$('[name=' + this.get('name') + ']').timepicker({ | |
minuteStep: 1, | |
showSeconds: true, |
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
App.TimePickerView = Ember.View.create({ | |
templateName: 'timepicker', | |
init: function() { | |
this._super(); | |
$('#timepicker1').timepicker({ | |
minuteStep: 1, | |
showSeconds: true, | |
showMeridian: false | |
}) | |
} |
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
<script type="text/x-handlebars" id="itinerary"> | |
<h2>Prepare your itinerary » {{title}}</h2> | |
<div class="row-fluid"> | |
<div class=" span10"> | |
<div class="timeline-container"> | |
<div class="timeline-label"> | |
<span class="label label-primary arrowed-in-right label-large"> | |
<b>Morni |