mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 01:14:30 +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
|
||||
(function noWorkflowimgEditMode(){
|
||||
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.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)
|
||||
|
|
Loading…
Reference in a new issue