summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar vitalyster2012-10-09 23:23:43 +0400
committerGravatar vitalyster2012-10-09 23:23:43 +0400
commit9252e0da67df741fa9212269434087689fb3f01e (patch)
tree94dcd15560f911cbbb0b527e941227e860298626 /Juick
parente3eefd6bf4af630cfd1db4a3701492d184185e10 (diff)
remove crap from relative URLs
Diffstat (limited to 'Juick')
-rw-r--r--Juick/MainPage.xaml.cs2
-rw-r--r--Juick/ThreadView.xaml.cs9
2 files changed, 2 insertions, 9 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs
index 43a2327..6ea6e04 100644
--- a/Juick/MainPage.xaml.cs
+++ b/Juick/MainPage.xaml.cs
@@ -157,7 +157,7 @@ namespace Juick
return;
// Navigate to the new page
- NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}&last=true", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative));
+ NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative));
// Reset selected index to -1 (no selection)
((ListBox)sender).SelectedIndex = -1;
diff --git a/Juick/ThreadView.xaml.cs b/Juick/ThreadView.xaml.cs
index eac9813..958efe2 100644
--- a/Juick/ThreadView.xaml.cs
+++ b/Juick/ThreadView.xaml.cs
@@ -22,16 +22,9 @@ namespace Juick
protected override void OnNavigatedTo(NavigationEventArgs e)
{
string _mid = "";
- string _last = "";
- bool last = false;
- if (NavigationContext.QueryString.TryGetValue("last", out _last))
- {
- last = bool.Parse(_last);
- }
if (NavigationContext.QueryString.TryGetValue("mid", out _mid))
{
- int MID = int.Parse(_mid);
- Model.Mid = last ? App.LastView.Items.Single(i => i.MID == MID).MID : App.MyFeedView.Items.Single(i => i.MID == MID).MID;
+ Model.Mid = int.Parse(_mid);
Model.LoadData();
}
}