Index: lams_gradebook/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/conf/language/lams/ApplicationResources.properties,v diff -u -r1.9.2.1 -r1.9.2.2 --- lams_gradebook/conf/language/lams/ApplicationResources.properties 11 May 2016 07:06:48 -0000 1.9.2.1 +++ lams_gradebook/conf/language/lams/ApplicationResources.properties 10 Nov 2016 12:30:08 -0000 1.9.2.2 @@ -97,6 +97,8 @@ label.actuals =Actuals label.max =Max label.overall.totals =Overall totals +button.help =Help +button.help.tooltip =Open help page #======= End labels: Exported 91 labels for en AU ===== Index: lams_gradebook/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.10.2.1 -r1.10.2.2 --- lams_gradebook/conf/language/lams/ApplicationResources_en_AU.properties 11 May 2016 07:06:48 -0000 1.10.2.1 +++ lams_gradebook/conf/language/lams/ApplicationResources_en_AU.properties 10 Nov 2016 12:30:08 -0000 1.10.2.2 @@ -97,6 +97,8 @@ label.actuals =Actuals label.max =Max label.overall.totals =Overall totals +button.help =Help +button.help.tooltip =Open help page #======= End labels: Exported 91 labels for en AU ===== Index: lams_gradebook/web/gradebookCourseLearner.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/web/gradebookCourseLearner.jsp,v diff -u -r1.9.2.3 -r1.9.2.4 --- lams_gradebook/web/gradebookCourseLearner.jsp 29 Jun 2016 10:22:01 -0000 1.9.2.3 +++ lams_gradebook/web/gradebookCourseLearner.jsp 10 Nov 2016 12:30:09 -0000 1.9.2.4 @@ -13,23 +13,20 @@ - - - -
- -
- -
- -

- - - - - -

-
-
-
-
- -
-
-
- - + + + Index: lams_gradebook/web/gradebookCourseMonitor.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/web/gradebookCourseMonitor.jsp,v diff -u -r1.16.2.6 -r1.16.2.7 --- lams_gradebook/web/gradebookCourseMonitor.jsp 29 Jun 2016 10:22:01 -0000 1.16.2.6 +++ lams_gradebook/web/gradebookCourseMonitor.jsp 10 Nov 2016 12:30:09 -0000 1.16.2.7 @@ -22,13 +22,16 @@ jQuery(document).ready(function(){ + var jqgridWidth = $(window).width() - 100; + // Create the lesson view grid with sub grid for users jQuery("#organisationGrid").jqGrid({ caption: "", datatype: "xml", url: "/gradebook/gradebook.do?dispatch=getCourseGridData&view=monCourse&organisationID=${organisationID}", height: "100%", - width: 660, + width: jqgridWidth, + shrinkToFit: false, sortorder: "asc", sortname: "id", pager: 'organisationGridPager', @@ -174,7 +177,8 @@ datatype: "xml", url: "/gradebook/gradebook.do?dispatch=getUserGridData&view=listView&organisationID=${organisationID}", height: "100%", - width: 660, + width: jqgridWidth, + shrinkToFit: false, sortorder: "asc", sortname: "rowName", pager: 'userViewPager', @@ -383,32 +387,52 @@ return false; }); + //jqgrid autowidth (http://stackoverflow.com/a/1610197) + $(window).bind('resize', function() { + resizeJqgrid(jQuery(".ui-jqgrid-btable:visible")); + }); + + //resize jqGrid on openning of bootstrap collapsible + $('div[id^="collapse"]').on('shown.bs.collapse', function () { + resizeJqgrid(jQuery(".ui-jqgrid-btable:visible", this)); + }) + + function resizeJqgrid(jqgrids) { + jqgrids.each(function(index) { + var gridId = $(this).attr('id'); + var gridParentWidth = jQuery('#gbox_' + gridId).parent().width(); + jQuery('#' + gridId).setGridWidth(gridParentWidth, true); + }); + }; + setTimeout(function(){ window.dispatchEvent(new Event('resize')); }, 300); + + }); function openSelectLessonsArea() { $("#select-lessons-area").toggle("slow"); return false; } + - -
- -
- -
- -

- + + + + + + + +

-

-
+

-
-
+ Index: lams_gradebook/web/gradebookMonitor.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/web/gradebookMonitor.jsp,v diff -u -r1.12.2.5 -r1.12.2.6 --- lams_gradebook/web/gradebookMonitor.jsp 9 Feb 2016 18:53:26 -0000 1.12.2.5 +++ lams_gradebook/web/gradebookMonitor.jsp 10 Nov 2016 12:30:09 -0000 1.12.2.6 @@ -62,6 +62,7 @@ jQuery(document).ready(function(){ + var jqgridWidth = $(window).width() - 100; displayReleaseOption(); // Create the user view grid with sub grid for activities @@ -70,7 +71,8 @@ datatype: "xml", url: "/gradebook/gradebook.do?dispatch=getUserGridData&view=monUserView&lessonID=${lessonDetails.lessonID}", height: "100%", - width: 670, + width: jqgridWidth, + shrinkToFit: false, cellEdit: true, viewrecords: true, sortorder: "asc", @@ -253,7 +255,8 @@ datatype: "xml", url: "/gradebook/gradebook.do?dispatch=getActivityGridData&view=monActivityView&lessonID=${lessonDetails.lessonID}", height: "100%", - width: 670, + width: jqgridWidth, + shrinkToFit: false, cellEdit: true, pager: "activityViewPager", rowList:[5,10,20,30], @@ -436,34 +439,51 @@ return false; }); + + //jqgrid autowidth (http://stackoverflow.com/a/1610197) + $(window).bind('resize', function() { + resizeJqgrid(jQuery(".ui-jqgrid-btable:visible")); + }); + + //resize jqGrid on openning of bootstrap collapsible + $('div[id^="collapse"]').on('shown.bs.collapse', function () { + resizeJqgrid(jQuery(".ui-jqgrid-btable:visible", this)); + }) + + function resizeJqgrid(jqgrids) { + jqgrids.each(function(index) { + var gridId = $(this).attr('id'); + var gridParentWidth = jQuery('#gbox_' + gridId).parent().width(); + jQuery('#' + gridId).setGridWidth(gridParentWidth, true); + }); + }; + setTimeout(function(){ window.dispatchEvent(new Event('resize')); }, 300); + }); - -
- -
-
- -

- + + + + + + + +

- -

-
+ -
+ Index: lams_gradebook/web/includes/css/gradebook.css =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/web/includes/css/gradebook.css,v diff -u -r1.2 -r1.2.2.1 --- lams_gradebook/web/includes/css/gradebook.css 28 Oct 2013 14:28:01 -0000 1.2 +++ lams_gradebook/web/includes/css/gradebook.css 10 Nov 2016 12:30:09 -0000 1.2.2.1 @@ -1,15 +1,3 @@ -#content { - margin-top:20px; - margin-left:auto; - margin-right:auto; - margin-bottom:30px; - width:707px; - height:100%; - border:1px solid #d4d8da; - background-color:#fff; - padding:20px 25px; -} - #export-link-area { padding-bottom: 20px; } @@ -24,13 +12,6 @@ margin-bottom: 10px; } -.grid-holder { - width: 700px; - margin-left: 10px; - margin-right: 10px; - margin-top: 20px; -} - #gbox_lessons-jqgrid { margin: 15px auto 25px auto; } \ No newline at end of file Index: lams_gradebook/web/includes/jsp/jqGridIncludes.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_gradebook/web/includes/jsp/jqGridIncludes.jsp,v diff -u -r1.6 -r1.6.2.1 --- lams_gradebook/web/includes/jsp/jqGridIncludes.jsp 28 Oct 2013 14:28:01 -0000 1.6 +++ lams_gradebook/web/includes/jsp/jqGridIncludes.jsp 10 Nov 2016 12:30:09 -0000 1.6.2.1 @@ -4,7 +4,7 @@ - +