Skip to content

Commit

Permalink
MDL-37749 theme_mymobile: Removed redundant JS and CSS code for Colla…
Browse files Browse the repository at this point in the history
…psed Topic contributed plugin.
  • Loading branch information
Mary Evans committed Feb 12, 2013
1 parent c192132 commit 856e156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 57 deletions.
13 changes: 0 additions & 13 deletions theme/mymobile/javascript/custom.js
Expand Up @@ -250,19 +250,6 @@ $(document).ready(function() {
$('.path-mod-hotpot button').attr("data-role", "none");
});

//collapsed topic only stuff
$('div#page-course-view-topcollPAGE').live('pagebeforecreate',function(event, ui){
$('#page-course-view-topcollPAGE ul.section').attr("data-role", "none");
$('.section li img').removeClass("ui-li-icon");
$.getScript('../course/format/topcoll/module.js');
$('#page-course-view-topcollPAGE tr.cps a').attr("data-role", "button").attr("data-icon", "arrow-r");
$('#page-course-view-topcollPAGE #thetopics').attr("data-role", "controlgroup");
$('#page-course-view-topcollPAGE td.cps_centre').each(function(index) {
var cpsc = $(this).text().replace('<br>','').replace(')','');
$(this).prev('td').find('a').append('<span class="ui-li-count ui-btn-up-a ui-btn-corner-all">' + cpsc + '</span>');
});
});

///// functions below does stuff after creating page for some cleaning...
$('div').live('pageinit',function(event, ui){
$('.path-calendar div.ui-radio label:first-child, .path-mod-lesson div.ui-radio label:first-child, #page-mod-wiki-createPAGE div.ui-radio label:first-child').addClass("afirst");
Expand Down
46 changes: 2 additions & 44 deletions theme/mymobile/style/core.css
Expand Up @@ -1345,49 +1345,7 @@ a.comment-link, .block_comments a.showcommentsnonjs, .block_comments .comment-ar
.block_comments .comment-ctrl {
display: block;
}
/*collapsed topic format*/
#thetopics {
table-layout: inherit !important;
width: 100%;
display: block !important;
}
#page-course-view-topcollPAGE .section td.content, col.content {
text-align: left;
width: 100% !important;
overflow: hidden;
}
#page-course-view-topcollPAGE .section td.content {
padding: .5em;
}
#page-course-view-topcollPAGE td.left.side, #page-course-view-topcollPAGE td.right.side {
display: none;
}
#page-course-view-topcollPAGE tr.cps td a {
background: none !important;
color: inherit !important;
padding: 7px 0 7px 0px !important;
}
tr.cps td span {
font-style: inherit !important;
font-size: 1.12em !important;
}
#page-course-view-topcollPAGE .section.separator, td.cps_centre {
display: none;
}
tr.cps {
background-color: inherit !important;
color: inherit !important;
}
.opencps .ui-btn-inner .ui-icon-arrow-r {
background-position: -216px 50%;
}
tr.cps td span.ui-li-count {
font-size: .6em !important;
right: 12px;
}
#page-course-view-topcollPAGE .cps .ui-btn-inner {
white-space: normal;
}

/*filemanager fixes and other button fixes and adds */
#page-mod-quiz-reportPAGE #commands input[type="submit"], #newmessagelinks a, .que input.submit {
display: block !important;
Expand Down Expand Up @@ -1454,7 +1412,7 @@ overflow:auto !important;
opacity: 0.8;
}
/*current highlight */
.weeks .current .headingwrap, .topics .current div.headingwrap, .current .ui-bar-b, .current .left.side, .tabtree ul.tabrow0 li.selected a, .ui-btn-active, #page-course-view-topcollPAGE .current {
.weeks .current .headingwrap, .topics .current div.headingwrap, .current .ui-bar-b, .current .left.side, .tabtree ul.tabrow0 li.selected a, .ui-btn-active {
border: 1px solid #F7C942;
background: #fadb4e;
color: #333;
Expand Down

0 comments on commit 856e156

Please sign in to comment.