Skip to content

Commit

Permalink
Issue #5 Remove selector for class missing in MOODLE 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dthies committed Jan 14, 2016
1 parent 0d50dc2 commit e07a8e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015122000; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2015122001; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014051200; // Requires this Moodle version.
$plugin->component = 'atto_fullscreen'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE; // Maturity level.
$plugin->release = 2015122000;
$plugin->release = 2015122001;
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
host.textarea.setStyle("margin-bottom", parseFloat(host.editor.getComputedStyle('margin-bottom')) + 20);

// Set dimensions for htmlplus textarea to match if installed.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap').setStyles({
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap').setStyles({
"padding": host.textarea.getStyle('padding'),
"margin": host.textarea.getStyle('margin'),
"height": parseInt(host.textarea.getStyle('height')) - 20,
"maxHeight": parseInt(host.textarea.getStyle('maxHeight')) - 20,
"height": parseFloat(host.textarea.getStyle('height')) - 20,
"maxHeight": parseFloat(host.textarea.getStyle('maxHeight')) - 20,
"width": host.textarea.getStyle('width')
});

Expand Down Expand Up @@ -217,7 +217,7 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
}

// Restore values for htmlplus textarea.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap')
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap')
.removeAttribute('style')
.setStyles(this._editorStyle);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
host.textarea.setStyle("margin-bottom", parseFloat(host.editor.getComputedStyle('margin-bottom')) + 20);

// Set dimensions for htmlplus textarea to match if installed.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap').setStyles({
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap').setStyles({
"padding": host.textarea.getStyle('padding'),
"margin": host.textarea.getStyle('margin'),
"height": parseInt(host.textarea.getStyle('height')) - 20,
"maxHeight": parseInt(host.textarea.getStyle('maxHeight')) - 20,
"height": parseFloat(host.textarea.getStyle('height')) - 20,
"maxHeight": parseFloat(host.textarea.getStyle('maxHeight')) - 20,
"width": host.textarea.getStyle('width')
});

Expand Down Expand Up @@ -217,7 +217,7 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
}

// Restore values for htmlplus textarea.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap')
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap')
.removeAttribute('style')
.setStyles(this._editorStyle);
}
Expand Down
8 changes: 4 additions & 4 deletions yui/src/button/js/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
host.textarea.setStyle("margin-bottom", parseFloat(host.editor.getComputedStyle('margin-bottom')) + 20);

// Set dimensions for htmlplus textarea to match if installed.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap').setStyles({
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap').setStyles({
"padding": host.textarea.getStyle('padding'),
"margin": host.textarea.getStyle('margin'),
"height": parseInt(host.textarea.getStyle('height')) - 20,
"maxHeight": parseInt(host.textarea.getStyle('maxHeight')) - 20,
"height": parseFloat(host.textarea.getStyle('height')) - 20,
"maxHeight": parseFloat(host.textarea.getStyle('maxHeight')) - 20,
"width": host.textarea.getStyle('width')
});

Expand Down Expand Up @@ -215,7 +215,7 @@ Y.namespace('M.atto_fullscreen').Button = Y.Base.create('button', Y.M.editor_att
}

// Restore values for htmlplus textarea.
host.toolbar.ancestor('.editor_atto_wrap').all('.CodeMirror-wrap')
host.toolbar.ancestor().ancestor().all('.CodeMirror-wrap')
.removeAttribute('style')
.setStyles(this._editorStyle);
}
Expand Down

0 comments on commit e07a8e9

Please sign in to comment.