Merge remote-tracking branch 'origin/master' into error-info

This commit is contained in:
Maximilian Grundke
2017-07-12 09:57:54 +02:00
6 changed files with 30 additions and 18 deletions

View File

@ -182,6 +182,7 @@ configureEditors: function () {
},
initializeEditors: function () {
this.editors = [];
$('.editor').each(function (index, element) {
// Resize frame on load

View File

@ -196,6 +196,7 @@ CodeOceanEditorSubmissions = {
unloadAutoSave: function() {
if(this.autosaveTimer != null){
this.autosave();
clearTimeout(this.autosaveTimer);
}
},

View File

@ -1,3 +0,0 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

View File

@ -1,3 +1,5 @@
#flash.fixed_error_messages.clickthrough data-message-failure=t('shared.message_failure')
#flash.fixed_error_messages data-message-failure=t('shared.message_failure')
- %w[alert danger info notice success warning].each do |severity|
p.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}" = flash[severity]
div.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}"
p = flash[severity]
span.fa.fa-times