Merge branch 'master' of https://github.com/telerik/hackaton-team15.git
Conflicts: Eventer/views/feedView.html
This commit is contained in:
Коммит
bdcb69262c
|
@ -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');
|
||||||
|
}
|
||||||
|
} });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
Загрузка…
Ссылка в новой задаче