mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-15 03:13:20 +08:00
fixes workflowing after updating description, fixes canvas bug
This commit is contained in:
parent
9393a96302
commit
f515366d91
2 changed files with 2 additions and 3 deletions
|
@ -2993,9 +2993,7 @@ function initJsPlumb(containerSel, containerChildSel, modulesSel, params) {
|
||||||
// Opens edit mode if redirected from empty experiment
|
// Opens edit mode if redirected from empty experiment
|
||||||
(function noWorkflowimgEditMode(){
|
(function noWorkflowimgEditMode(){
|
||||||
if( getParam('editMode') ){
|
if( getParam('editMode') ){
|
||||||
$(document).ready(function(){
|
$("#edit-canvas-button").click();
|
||||||
$("#edit-canvas-button").click();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ class ExperimentsController < ApplicationController
|
||||||
@experiment.update_attributes(experiment_params)
|
@experiment.update_attributes(experiment_params)
|
||||||
@experiment.last_modified_by = current_user
|
@experiment.last_modified_by = current_user
|
||||||
if @experiment.save
|
if @experiment.save
|
||||||
|
@experiment.touch(:workflowimg_updated_at)
|
||||||
flash[:success] = t('experiments.update.success_flash',
|
flash[:success] = t('experiments.update.success_flash',
|
||||||
experiment: @experiment.name)
|
experiment: @experiment.name)
|
||||||
redirect_to canvas_experiment_path(@experiment)
|
redirect_to canvas_experiment_path(@experiment)
|
||||||
|
|
Loading…
Reference in a new issue