Commit 1f9aef94 authored by Aaron Wells's avatar Aaron Wells
Browse files

Bug 1558361: Remove "_blank" from note block

Also setting the note block's form change checker state to
"dirty" by default, so that users will get a warning before
navigating away to the other page.

Change-Id: I20f586781df63e942a7a1c82e5e74fd5214c233f
parent ac5615a9
......@@ -127,6 +127,7 @@ class PluginBlocktypeTextbox extends MaharaCoreBlocktype {
// of blocks containing the new artefact.
$blockid = $instance->get('id');
return <<<EOF
formchangemanager.setFormStateById('instconf', FORM_CHANGED);
function updateTextContent(a) {
setNodeAttribute('instconf_title', 'value', a.title);
if (typeof(tinyMCE) != 'undefined') {
......@@ -360,7 +361,7 @@ EOF;
'managenotes' => array(
'type' => 'html',
'class' => 'hidden text-right',
'value' => '<a href="' . $manageurl . '" target="_blank" class="pull-right">'
'value' => '<a href="' . $manageurl . '" class="pull-right">'
. get_string('managealltextboxcontent1', 'blocktype.internal/textbox') . ' <span class="icon icon-arrow-right right" role="presentation"></span></a>',
),
'artefactid' => self::artefactchooser_element(isset($artefactid) ? $artefactid : null),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment