-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03146fd
commit 369d00f
Showing
45 changed files
with
164 additions
and
84 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
/* | ||
//TODO fix auto close sidebar before uncomment | ||
when click on popupt title sidebar not shown | ||
Template.panelPlace_ui_btns.events({ | ||
'click .place-btn-map': function(e, tmpl) { | ||
e.preventDefault(); | ||
tmpl.data.showLoc(); | ||
} | ||
});*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
<template name="tabPlace_ui_nearby"> | ||
|
||
<div class="list-group"> | ||
<div class="list-group-item active"> | ||
{{i18n 'label_nearplaces'}} | ||
</div> | ||
{{#if getNearbyList.length}} | ||
<ul class="list-group"> | ||
{{#each getNearbyList}} | ||
<li class="list-group-item"> | ||
{{> item_place_search}} | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{else}} | ||
<a class="list-group-item panel-btn-nearbyList" href="#"> | ||
<i class="icon icon-places"></i> {{i18n 'label_nearplaces'}} | ||
</a> | ||
{{/if}} | ||
</div> | ||
|
||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
Template.tabPlace_ui_nearby.onCreated(function() { | ||
this.nearbyList = new ReactiveVar([]); | ||
}); | ||
|
||
Template.tabPlace_ui_nearby.helpers({ | ||
getNearbyList: function() { | ||
return Template.instance().nearbyList.get(); | ||
} | ||
}); | ||
|
||
|
||
Template.tabPlace_ui_nearby.events({ | ||
'click .panel-btn-nearbyList': function(e, tmpl) { | ||
|
||
var icon$ = $(e.target).find('.icon'); | ||
$(e.target).addClass('disabled'); | ||
icon$.addClass('icon-loader'); | ||
|
||
Meteor.subscribe('placesByNearby', tmpl.data.loc, function() { | ||
$(e.target).removeClass('disabled'); | ||
icon$.removeClass('icon-loader'); | ||
|
||
var places = K.findPlacesByNearby(tmpl.data.loc, 5000).fetch(); | ||
|
||
places = _.filter(places, function(p) { | ||
return p._id !== tmpl.data._id; | ||
}); | ||
|
||
places = _.first(places, 5); | ||
|
||
places = _.map(places, function(place) { | ||
return K.placeById(place._id); | ||
}); | ||
|
||
tmpl.nearbyList.set(places); | ||
}); | ||
} | ||
}); |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
/** | ||
* @namespace | ||
* @name Kepler | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var version = '1.6.4'; | ||
var version = '1.6.5'; | ||
|
||
Package.describe({ | ||
version: version, | ||
|
Oops, something went wrong.