Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-37749 theme_mymobile: Removed redundant JS and CSS code for Colla…

…psed Topic contributed plugin.
  • Loading branch information...
commit 856e1568d62a562302f03d9a76b1b7f4e0968856 1 parent c192132
Mary Evans authored February 12, 2013
13  theme/mymobile/javascript/custom.js
@@ -250,19 +250,6 @@ $(document).ready(function() {
250 250
         $('.path-mod-hotpot button').attr("data-role", "none");
251 251
     });
252 252
 
253  
-    //collapsed topic only stuff
254  
-    $('div#page-course-view-topcollPAGE').live('pagebeforecreate',function(event, ui){
255  
-        $('#page-course-view-topcollPAGE ul.section').attr("data-role", "none");
256  
-        $('.section li img').removeClass("ui-li-icon");
257  
-        $.getScript('../course/format/topcoll/module.js');
258  
-        $('#page-course-view-topcollPAGE tr.cps a').attr("data-role", "button").attr("data-icon", "arrow-r");
259  
-        $('#page-course-view-topcollPAGE #thetopics').attr("data-role", "controlgroup");
260  
-        $('#page-course-view-topcollPAGE td.cps_centre').each(function(index) {
261  
-            var cpsc = $(this).text().replace('<br>','').replace(')','');
262  
-            $(this).prev('td').find('a').append('<span class="ui-li-count ui-btn-up-a ui-btn-corner-all">' + cpsc + '</span>');
263  
-        });
264  
-    });
265  
-
266 253
     ///// functions below does stuff after creating page for some cleaning...
267 254
     $('div').live('pageinit',function(event, ui){
268 255
         $('.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");
46  theme/mymobile/style/core.css
@@ -1345,49 +1345,7 @@ a.comment-link, .block_comments a.showcommentsnonjs, .block_comments .comment-ar
1345 1345
 .block_comments .comment-ctrl {
1346 1346
     display: block;
1347 1347
 }
1348  
-/*collapsed topic format*/
1349  
-#thetopics {
1350  
-    table-layout: inherit !important;
1351  
-    width: 100%;
1352  
-    display: block !important;
1353  
-}
1354  
-#page-course-view-topcollPAGE .section td.content, col.content {
1355  
-    text-align: left;
1356  
-    width: 100% !important;
1357  
-    overflow: hidden;
1358  
-}
1359  
-#page-course-view-topcollPAGE .section td.content {
1360  
-    padding: .5em;
1361  
-}
1362  
-#page-course-view-topcollPAGE td.left.side, #page-course-view-topcollPAGE td.right.side {
1363  
-    display: none;
1364  
-}
1365  
-#page-course-view-topcollPAGE tr.cps td a {
1366  
-    background: none !important;
1367  
-    color: inherit !important;
1368  
-    padding: 7px 0 7px 0px !important;
1369  
-}
1370  
-tr.cps td span {
1371  
-    font-style: inherit !important;
1372  
-    font-size: 1.12em !important;
1373  
-}
1374  
-#page-course-view-topcollPAGE .section.separator, td.cps_centre {
1375  
-    display: none;
1376  
-}
1377  
-tr.cps {
1378  
-    background-color: inherit !important;
1379  
-    color: inherit !important;
1380  
-}
1381  
-.opencps .ui-btn-inner .ui-icon-arrow-r {
1382  
-    background-position: -216px 50%;
1383  
-}
1384  
-tr.cps td span.ui-li-count {
1385  
-    font-size: .6em !important;
1386  
-    right: 12px;
1387  
-}
1388  
-#page-course-view-topcollPAGE .cps .ui-btn-inner {
1389  
-    white-space: normal;
1390  
-}
  1348
+
1391 1349
 /*filemanager fixes and other button fixes and adds */
1392 1350
 #page-mod-quiz-reportPAGE #commands input[type="submit"], #newmessagelinks a, .que input.submit {
1393 1351
     display: block !important;
@@ -1454,7 +1412,7 @@ overflow:auto !important;
1454 1412
     opacity: 0.8;
1455 1413
 }
1456 1414
 /*current highlight */
1457  
-.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 {
  1415
+.weeks .current .headingwrap, .topics .current div.headingwrap, .current .ui-bar-b, .current .left.side, .tabtree ul.tabrow0 li.selected a, .ui-btn-active {
1458 1416
     border: 1px solid #F7C942;
1459 1417
     background: #fadb4e;
1460 1418
     color: #333;

0 notes on commit 856e156

Please sign in to comment.
Something went wrong with that request. Please try again.