Conflicts:
	Eventer/views/feedView.html
This commit is contained in:
Richard Flamsholt 2013-11-08 07:25:02 -06:00
Родитель 775f8b8575 fd5712734a
Коммит bdcb69262c
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -315,9 +315,12 @@ var app = (function () {
var eventSelected = function (e) { var eventSelected = function (e) {
mobileApp.navigate('views/eventView.html?uid=' + e.data.uid); mobileApp.navigate('views/eventView.html?uid=' + e.data.uid);
}; };
/*
var navigateHome = function () { var navigateHome = function () {
mobileApp.navigate('#welcome'); mobileApp.navigate('#welcome');
}; };
var logout = function () { var logout = function () {
AppHelper.logout() AppHelper.logout()
.then(navigateHome, function (err) { .then(navigateHome, function (err) {
@ -325,10 +328,11 @@ var app = (function () {
navigateHome(); navigateHome();
}); });
}; };
*/
return { return {
feed: EventsModel.events, feed: EventsModel.events,
eventSelected: eventSelected, eventSelected: eventSelected,
logout: logout //logout: logout
}; };
}()); }());
@ -358,6 +362,11 @@ var app = (function () {
user ? btn.text("Cancel") : btn.text("Join!"); user ? btn.text("Cancel") : btn.text("Join!");
btn.kendoTouch({ tap: function (e) { joinCancel() } }); btn.kendoTouch({ tap: function (e) { joinCancel() } });
$("body").kendoTouch({ enableSwipe: true, swipe: function (e) {
if(e.direction === "right") {
mobileApp.navigate('#:back');
}
} });
} }
}; };
}()); }());