mumuki-laboratory 6.4.0 → 6.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/application/kids.js +1 -0
- data/app/controllers/concerns/organizations_controller_template.rb +1 -1
- data/app/controllers/concerns/users_controller_template.rb +1 -1
- data/app/helpers/concerns/with_student_path_navigation.rb +4 -0
- data/app/views/exercise_solutions/_kids_results_button.html.erb +1 -1
- data/lib/mumuki/laboratory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f61c0972720fad49773ce961e0d22bf5ccbe278227acf8c774b96c2496c700
|
4
|
+
data.tar.gz: 6a0f37e73b932e93103875147c87a26655db669ca3bc8596b07e7c7f088f9de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41e106589d3de950b94ccdc08c61c391426a24d0221ade64ad360bf05f475f40105aa669ecc79e01f4af988103e393efe7ed0515800d24b62def8df4dd193dee
|
7
|
+
data.tar.gz: 06fac5ebb2ee4bf166b9fd05d137d79ad8b2d9c00178b43fbef3496f697ef025c778dbebe380c12af3ffe3485617871d89069d274c059ae598afdcb9ca811ab8
|
@@ -198,6 +198,7 @@ mumuki.load(function () {
|
|
198
198
|
results_kids_modal.find('.modal-header').first().html(data.title_html);
|
199
199
|
results_kids_modal.find('.modal-footer').first().html(data.button_html);
|
200
200
|
mumuki.kids._showCorollaryCharacter();
|
201
|
+
$('.mu-close-modal').click(() => $('#kids-results').modal('hide'));
|
201
202
|
}
|
202
203
|
}, 1000 * 4);
|
203
204
|
},
|
@@ -12,4 +12,8 @@ module WithStudentPathNavigation
|
|
12
12
|
def next_exercise_button(exercise)
|
13
13
|
next_button(exercise) || next_button(exercise.guide.lesson)
|
14
14
|
end
|
15
|
+
|
16
|
+
def close_modal_button
|
17
|
+
%Q{<button class="btn btn-success btn-block mu-close-modal">#{t :keep_learning}</button>}.html_safe
|
18
|
+
end
|
15
19
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="col-md-12">
|
3
3
|
<div class="actions">
|
4
4
|
<% if assignment.passed? %>
|
5
|
-
<%= next_exercise_button(@exercise) %>
|
5
|
+
<%= next_exercise_button(@exercise) || close_modal_button %>
|
6
6
|
<% else %>
|
7
7
|
<button class="btn btn-success btn-block submission-control" id="kids-btn-retry" data-dismiss="modal" aria-label="<%= t :retry_exercise %>"> <%= t :retry_exercise %> </button>
|
8
8
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-laboratory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|