mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Using flash instead of alerts in the schedule
Using flash instead of alerts in the schedule to notify errors. Also, a message shown when a schedule is successfully created.
This commit is contained in:
parent
81108290e5
commit
5761e0f7a4
7 changed files with 19 additions and 11 deletions
|
|
@ -26,7 +26,7 @@ module Admin
|
|||
flash[:error] = "Updating program failed. #{@program.errors.to_a.join('. ')}."
|
||||
render :new
|
||||
end
|
||||
format.js { render json: { 'status' => 'error' } }
|
||||
format.js { render json: { 'status' => "The selected schedule couldn't been updated" } }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue