fixes workflowing after updating description, fixes canvas bug

This commit is contained in:
zmagod 2016-08-25 09:11:42 +02:00
parent 9393a96302
commit f515366d91
2 changed files with 2 additions and 3 deletions

View file

@ -2993,9 +2993,7 @@ function initJsPlumb(containerSel, containerChildSel, modulesSel, params) {
// Opens edit mode if redirected from empty experiment
(function noWorkflowimgEditMode(){
if( getParam('editMode') ){
$(document).ready(function(){
$("#edit-canvas-button").click();
});
$("#edit-canvas-button").click();
}
})();

View file

@ -66,6 +66,7 @@ class ExperimentsController < ApplicationController
@experiment.update_attributes(experiment_params)
@experiment.last_modified_by = current_user
if @experiment.save
@experiment.touch(:workflowimg_updated_at)
flash[:success] = t('experiments.update.success_flash',
experiment: @experiment.name)
redirect_to canvas_experiment_path(@experiment)