Skip to content
Permalink
Browse files

Merge branch 'MDL-36305-23' of git://github.com/FMCorz/moodle into MO…

…ODLE_23_STABLE
  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Nov 27, 2012
2 parents 13669ef + f54b485 commit 4505720f3e9db09354d73e8a57b037dc3d7f062c
Showing with 6 additions and 2 deletions.
  1. +6 −2 theme/mymobile/javascript/custom.js
@@ -127,10 +127,14 @@ $(document).ready(function() {

//forum discussion page only stuff
$('div#page-mod-forum-discussPAGE, #page-mod-forum-discuss div.generalpage, div.forumtype-single, .forumtype-single div.generalpage, div#page-mod-forum-postPAGE').live('pagebeforecreate',function(event, ui){
//remove parent post because of hash remove this if has listening is fixed
// Handle the '#' in the URLs.
$('.options div.commands a').each(function(index) {
var url = $(this).attr("href");
if (url.indexOf("#") != -1) {
if (url.indexOf("post.php") != -1 && url.indexOf("reply=") != -1) {
// Remove the anchor from the reply link.
$(this).attr('href', url.replace('#mform1', ''));
} else if (url.indexOf("#") != -1) {
// Remove "Show parent" and other links which contains a '#'.
$(this).remove();
}
});

0 comments on commit 4505720

Please sign in to comment.
You can’t perform that action at this time.