MDL-36305. Reply button in forums not shown in MyMobile theme
Updates jquery mobile from version 1.1.0 to 1.1.1 and shows the "Show parent" button again in forum posts.
This commit is contained in:
committed by
Frederic Massart
parent
2d7c5eeeea
commit
ff63763092
@@ -158,7 +158,7 @@ if ($thisdevice == "default" || $thisdevice == "tablet" || optional_param('mymob
|
||||
$THEME->javascripts = array(
|
||||
'jquery-1.7.1.min',
|
||||
'custom',
|
||||
'jquery.mobile-1.1.0'
|
||||
'jquery.mobile-1.1.1'
|
||||
);
|
||||
|
||||
// Sets a custom render factory to use with the theme, used when working with custom renderers.
|
||||
|
||||
@@ -127,14 +127,6 @@ $(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
|
||||
$('.options div.commands a').each(function(index) {
|
||||
var url = $(this).attr("href");
|
||||
if (url.indexOf("#") != -1) {
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
|
||||
//actual forum posting
|
||||
$('.forumpost div.row.header').addClass("ui-li ui-li-divider ui-btn ui-bar-" + mytheme);
|
||||
$('.options div.commands').attr("data-role", "controlgroup").attr("data-type", "horizontal");
|
||||
|
||||
+524
-393
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user