Skip to content

Commit 69b47fb

Browse files
committed
V2.9.0.1
1 parent a0eb864 commit 69b47fb

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

Readme.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ A topics based format that uses a grid of user selectable images to pop up a lig
44

55
Required version of Moodle
66
==========================
7-
This version works with Moodle version 2014111000.00 release 2.8 (Build: 20141110) and above within the 2.8 branch until the
7+
This version works with Moodle version 2015051100.00 2.9 (Build: 20150511) and above within the 2.9 branch until the
88
next release.
99

1010
Please ensure that your hardware and software complies with 'Requirements' in 'Installing Moodle' on
11-
'docs.moodle.org/28/en/Installing_Moodle' / 'docs.moodle.org/dev/Moodle_2.8_release_notes'.
11+
'docs.moodle.org/29/en/Installing_Moodle'.
1212

1313
Free Software
1414
=============
1515
The Grid format is 'free' software under the terms of the GNU GPLv3 License, please see 'COPYING.txt'.
1616

17-
It can be obtained for free from:
18-
https://moodle.org/plugins/view.php?plugin=format_grid
19-
and
20-
https://github.com/gjb2048/moodle-courseformat_grid/releases
17+
The primary source for downloading this branch of the format is https://moodle.org/plugins/view.php?plugin=format_grid
18+
with 'Select Moodle version:' set at 'Moodle 2.9'.
19+
20+
The secondary source is a tagged version with the v2.9 prefix on https://github.com/gjb2048/moodle-courseformat_grid/tags
21+
22+
If you download from the development area - https://github.com/gjb2048/moodle-courseformat_grid/ - consider that
23+
the code is unstable and not for use in production environments. This is because I develop the next version in stages
24+
and use GitHub as a means of backup. Therefore the code is not finished, subject to alteration and requires testing.
2125

2226
You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the
2327
FAQ - http://www.gnu.org/licenses/gpl-faq.html - is a good place to look.
@@ -32,7 +36,8 @@ Supporting Grid development
3236
===========================
3337
If you find Grid useful and beneficial, please consider donating by:
3438

35-
PayPal - Please contact me via my 'Moodle profile' (above) for details as I am an individual and therefore am unable to have 'donation' / 'buy me now' buttons under their terms.
39+
PayPal - Please contact me via my 'Moodle profile' (above) for details as I am an individual and therefore am unable to have
40+
'donation' / 'buy me now' buttons under their terms.
3641

3742
Flattr - https://flattr.com/profile/gjb2048
3843

@@ -246,7 +251,13 @@ Known Issues
246251

247252
History
248253
=============
249-
3rd April 2015 Version 2.8.2.2
254+
Version 2.9.0.1.
255+
1. First 'release candidate' version for Moodle 2.9.
256+
2. Note: Need to seriously think about using AMD and transitioning to using jQuery instead of YUI as AJAX is possible in jQuery,
257+
but almost certainly not in the first instance as YUI is still supported in core. Modularisation is do-able in AMD
258+
with parameters required: https://docs.moodle.org/dev/Javascript_Modules.
259+
260+
3rd April 2015 Version 2.8.2.2
250261
1. Fixed 'importing of grid icons.' - #11 - patch gratefully received from Tim Lock.
251262

252263
25th February 2015 Version 2.8.2.1

module.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,13 @@ M.format_grid.init = function(Y, the_editing_on, the_section_redirect, the_num_s
6363
this.section_redirect = the_section_redirect;
6464
this.selected_section = null;
6565
this.num_sections = parseInt(the_num_sections);
66-
//console.log("the_num_sections parameter: " + the_num_sections);
67-
//console.log("SSA parameter: " + the_shadebox_shown_array);
68-
//this.shadebox_shown_array = JSON.parse(the_shadebox_shown_array);
6966
this.shadebox_shown_array = the_shadebox_shown_array;
7067
Y.use('json-parse', function (Y) {
7168
M.format_grid.shadebox_shown_array = Y.JSON.parse(M.format_grid.shadebox_shown_array);
7269
});
73-
//console.log("SSA var: " + this.shadebox_shown_array);
7470

7571
if (this.num_sections > 0) {
7672
this.set_selected_section(this.num_sections, true, true); // Section 0 can be in the grid.
77-
//console.log("init() - selected section no: " + this.selected_section_no);
7873
} else {
7974
this.selected_section_no = -1;
8075
}
@@ -106,10 +101,11 @@ M.format_grid.init = function(Y, the_editing_on, the_section_redirect, the_num_s
106101
document.getElementById("gridshadebox_right").style.display = "";
107102
}
108103
// Remove href link from icon anchors so they don't compete with JavaScript onlick calls.
109-
var icon_links = getElementsByClassName(document.getElementById("gridiconcontainer"), "a", "gridicon_link");
110-
for(var i = 0; i < icon_links.length; i++) {
111-
icon_links[i].href = "#";
112-
}
104+
var gridiconcontainer = Y.one("#gridiconcontainer");
105+
var icon_links = gridiconcontainer.all("a.gridicon_link");
106+
icon_links.each(function (node) {
107+
node.setAttribute("href", "#");
108+
});
113109

114110
M.format_grid.shadebox.initialize_shadebox();
115111
M.format_grid.shadebox.update_shadebox();

version.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
defined('MOODLE_INTERNAL') || die();
3030

3131
// Plugin version.
32-
$plugin->version = 2015040300;
32+
$plugin->version = 2015051100;
3333

3434
// Required Moodle version.
35-
$plugin->requires = 2014111000.00; // 2.8 (Build: 20141110).
35+
$plugin->requires = 2015051100.00; // 2.9 (Build: 20150511).
3636

3737
// Full name of the plugin.
3838
$plugin->component = 'format_grid';
3939

4040
// Software maturity level.
41-
$plugin->maturity = MATURITY_STABLE;
41+
$plugin->maturity = MATURITY_RC;
4242

4343
// User-friendly version number.
44-
$plugin->release = '2.8.2.2';
44+
$plugin->release = '2.9.0.1';

0 commit comments

Comments
 (0)