Permalink
Browse files

history back

  • Loading branch information...
1 parent c80f0c8 commit 448209061d2ae7c718ce1b82356a2af68ef5c81b @pinguxx pinguxx committed Mar 28, 2012
Showing with 9 additions and 6 deletions.
  1. +5 −3 public/javascripts/mscript.js
  2. +4 −3 views/dashboardm.jade
@@ -234,10 +234,12 @@ $('#adduser').live('click', function(){
});
$('.doinvite').live('click', function(){
$.mobile.showPageLoadingMsg();
- $('.invite').show();
+ $('.invite').show
$.mobile.changePage( "#addf",
{
- transition: "pop"
+ transition: "pop",
+ reverse: false,
+ changeHash: false
});
});
$('.invite').live('click', function(){
@@ -260,8 +262,8 @@ $('.invite').live('click', function(){
$.post("/invite", { users: userp },
function(data) {
if (data){
- showMsg('dashboard.warning', 'dashboard.invited');
history.back();
+ showMsg('dashboard.warning', 'dashboard.invited');
}else{
showMsg('dashboard.error', 'dashboard.warning_invited');
}
View
@@ -147,9 +147,10 @@
//content
div.ui-bar(data-role="footer", data-theme="b", data-position="fixed")
- a#bina(href="#", data-icon="back") Back
- a.add(href="#", data-role="button", data-theme="b") Add
- a.invite(href="#", data-role="button", data-theme="b") Invite
+ div.cg(data-role="controlgroup", data-type="horizontal")
+ a#bina(href="#", data-icon="back") Back
+ a.add(href="#", data-role="button", data-theme="b") Add
+ a.invite(href="#", data-role="button", data-theme="b") Invite
///page add friends
#details(data-role="page")

0 comments on commit 4482090

Please sign in to comment.