Skip to content

Commit

Permalink
OUwiki: Fix save check dialogue [M2.7] #11403
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-platts authored and sammarshallou committed Sep 10, 2014
1 parent c79efd0 commit 1588627
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
$jsmodule = array(
'name' => 'mod_ouwiki_edit',
'fullpath' => '/mod/ouwiki/module.js',
'requires' => array('base', 'event', 'io', 'node', 'anim', 'moodle-core-notification', 'button'),
'requires' => array('base', 'event', 'io', 'node', 'anim', 'moodle-core-notification-alert', 'button'),
'strings' => $stringlist
);
$PAGE->requires->js_init_call('M.mod_ouwiki_edit.init', null, true, $jsmodule);
Expand Down
19 changes: 4 additions & 15 deletions module.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,25 +492,14 @@ M.mod_ouwiki_edit = {
// Save failed, alert of network or session issue.
btns.set('disabled', true);
var content = M.util.get_string('savefailnetwork', 'ouwiki');
var panel = new M.core.dialogue({
headerContent: M.util.get_string('savefailtitle', 'ouwiki'),
bodyContent: content,
width: 400,
centered: true,
var panel = new M.core.alert({
title: M.util.get_string('savefailtitle', 'ouwiki'),
message: content,
render: true,
zIndex: 5000,
buttons: {
footer: [
{
name: 'ok',
label: M.util.get_string('close', 'form'),
action: oncancel
}
]
},
plugins: [Y.Plugin.Drag],
modal: true
});
panel.show();
function oncancel(evt) {
evt.preventDefault();
panel.hide();
Expand Down
17 changes: 13 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

$module->version = 2014042800;
$module->requires = 2013040500;
$module->cron = 60*60*24; // Once per day.
/**
* Version.
*
* @package mod_ouwiki
* @copyright 2014 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$module->displayversion = 'Unstable development version';
$plugin->version = 2014150800;
$plugin->requires = 2014051200;
$plugin->cron = 60 * 60 * 24; // Once per day.
$plugin->component = 'mod_ouwiki';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '2.7 r1';

0 comments on commit 1588627

Please sign in to comment.