Skip to content
Permalink
Browse files

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

…ODLE_22_STABLE
  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Nov 27, 2012
2 parents 8725c44 + 37881d2 commit 385cddf6347fef6d52a70428ec2ec25aeaa3fd72
Showing with 6 additions and 2 deletions.
  1. +6 −2 theme/mymobile/javascript/custom.js
@@ -128,10 +128,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 385cddf

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