From 1588627ed61f76bb6566ac4e5edde9483fe55a36 Mon Sep 17 00:00:00 2001 From: Jason Platts Date: Fri, 15 Aug 2014 16:02:09 +0100 Subject: [PATCH] OUwiki: Fix save check dialogue [M2.7] #11403 --- edit.php | 2 +- module.js | 19 ++++--------------- version.php | 17 +++++++++++++---- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/edit.php b/edit.php index 1c67e6b..ece757b 100644 --- a/edit.php +++ b/edit.php @@ -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); diff --git a/module.js b/module.js index 3364ece..916926e 100644 --- a/module.js +++ b/module.js @@ -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(); diff --git a/version.php b/version.php index 775a655..b0faefd 100644 --- a/version.php +++ b/version.php @@ -14,8 +14,17 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . -$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';