Skip to content

Commit

Permalink
Exit read module implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-fung committed Oct 11, 2012
1 parent a456601 commit 30d9df5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/scriptsharp/Module/ReadModule.cs
Expand Up @@ -121,6 +121,8 @@ private ReadModule()
});

jQuery.Select("#read-info-btn").Click(ToggleInfoButtonClicked);
jQuery.Select("#read-exit-btn").Click(ExitButtonClicked);

}

protected override void OnShow()
Expand Down Expand Up @@ -467,5 +469,20 @@ private void TouchHandler(jQueryTouchEvent e)
RefreshMangaArea(false);
}
}

private void ExitButtonClicked(jQueryEvent e)
{
e.PreventDefault();
Exit();
}

private void Exit()
{
readNext = false;
RemoveAllPages();
UnloadAllPages();
HideInfo();
MangasModule.Instance.Show();
}
}
}

0 comments on commit 30d9df5

Please sign in to comment.