frank-cucumber 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/frank-skeleton/frank_static_resources.bundle/index.html +29 -34
- data/frank-skeleton/frank_static_resources.bundle/{index.haml → index.html.haml} +28 -29
- data/frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee +41 -0
- data/frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.js +46 -0
- data/frank-skeleton/frank_static_resources.bundle/js/controller.coffee +129 -0
- data/frank-skeleton/frank_static_resources.bundle/js/controller.js +142 -0
- data/frank-skeleton/frank_static_resources.bundle/js/details_view.coffee +42 -0
- data/frank-skeleton/frank_static_resources.bundle/js/details_view.js +51 -0
- data/frank-skeleton/frank_static_resources.bundle/js/dropdown_control.coffee +64 -0
- data/frank-skeleton/frank_static_resources.bundle/js/dropdown_control.js +73 -0
- data/frank-skeleton/frank_static_resources.bundle/js/ersatz_model.coffee +46 -0
- data/frank-skeleton/frank_static_resources.bundle/js/ersatz_model.js +59 -0
- data/frank-skeleton/frank_static_resources.bundle/js/ersatz_view.coffee +167 -0
- data/frank-skeleton/frank_static_resources.bundle/js/ersatz_view.js +198 -0
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.coffee +10 -0
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.js +17 -0
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.coffee +43 -0
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.js +60 -0
- data/frank-skeleton/frank_static_resources.bundle/js/frank.coffee +96 -0
- data/frank-skeleton/frank_static_resources.bundle/js/frank.js +118 -0
- data/frank-skeleton/frank_static_resources.bundle/js/lib/backbone.js +1431 -0
- data/frank-skeleton/frank_static_resources.bundle/{coffee-script.js → js/lib/coffee-script.js} +0 -0
- data/frank-skeleton/frank_static_resources.bundle/{jquery-ui.min.js → js/lib/jquery-ui.min.js} +0 -0
- data/frank-skeleton/frank_static_resources.bundle/{jquery.min.js → js/lib/jquery.min.js} +0 -0
- data/frank-skeleton/frank_static_resources.bundle/{jquery.treeview.js → js/lib/jquery.treeview.js} +0 -0
- data/frank-skeleton/frank_static_resources.bundle/{json2.js → js/lib/json2.js} +0 -0
- data/frank-skeleton/frank_static_resources.bundle/js/lib/raphael.js +5815 -0
- data/frank-skeleton/frank_static_resources.bundle/js/lib/require.js +2053 -0
- data/frank-skeleton/frank_static_resources.bundle/{underscore.js → js/lib/underscore.js} +466 -177
- data/frank-skeleton/frank_static_resources.bundle/js/main.coffee +27 -0
- data/frank-skeleton/frank_static_resources.bundle/js/main.js +29 -0
- data/frank-skeleton/frank_static_resources.bundle/js/tabs_controller.coffee +13 -0
- data/frank-skeleton/frank_static_resources.bundle/js/tabs_controller.js +22 -0
- data/frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee +15 -0
- data/frank-skeleton/frank_static_resources.bundle/js/toast_controller.js +28 -0
- data/frank-skeleton/frank_static_resources.bundle/js/transform_stack.coffee +59 -0
- data/frank-skeleton/frank_static_resources.bundle/js/transform_stack.js +78 -0
- data/frank-skeleton/frank_static_resources.bundle/js/tree_view.coffee +53 -0
- data/frank-skeleton/frank_static_resources.bundle/js/tree_view.js +64 -0
- data/frank-skeleton/frank_static_resources.bundle/js/view_heir_model.coffee +37 -0
- data/frank-skeleton/frank_static_resources.bundle/js/view_heir_model.js +48 -0
- data/frank-skeleton/frank_static_resources.bundle/js/view_model.coffee +39 -0
- data/frank-skeleton/frank_static_resources.bundle/js/view_model.js +62 -0
- data/frank-skeleton/frank_static_resources.bundle/symbiote.css +116 -84
- data/lib/frank-cucumber/frankifier.rb +20 -2
- data/lib/frank-cucumber/version.rb +1 -1
- metadata +70 -38
- data/frank-skeleton/frank_static_resources.bundle/raphael-min.js +0 -7
- data/frank-skeleton/frank_static_resources.bundle/symbiote.js +0 -585
- data/frank-skeleton/frank_static_resources.bundle/symbiote_ui.coffee +0 -39
@@ -1,39 +0,0 @@
|
|
1
|
-
setupDropdowns = ->
|
2
|
-
$extraActionsList = $('.action-buttons .extra-actions')
|
3
|
-
$se_option_list = $('ul#selector_engine_options')
|
4
|
-
$se_option_input = $('input#selector_engine')
|
5
|
-
|
6
|
-
$('button#selector_engine_dropdown').on 'click', (e)->
|
7
|
-
e.stopPropagation()
|
8
|
-
$se_option_list.toggleClass('shown')
|
9
|
-
|
10
|
-
$('li', $se_option_list).on 'click', (e)->
|
11
|
-
$se_option_input.val( $(e.target).text() )
|
12
|
-
|
13
|
-
$('.action-buttons .drop-indicator').on 'click', (e)->
|
14
|
-
e.stopPropagation()
|
15
|
-
$extraActionsList.toggleClass('shown')
|
16
|
-
|
17
|
-
$('button',$extraActionsList).on 'click', ->
|
18
|
-
$selectedButton = $(this)
|
19
|
-
$currentTopButton = $('.action-buttons > button')
|
20
|
-
|
21
|
-
return if $selectedButton[0] == $currentTopButton[0]
|
22
|
-
|
23
|
-
# shove the button that was just selected into the 'top'
|
24
|
-
# action button area
|
25
|
-
$currentTopButton.after($selectedButton)
|
26
|
-
# push the current top button to the top of the 'extra'
|
27
|
-
# action button area. This will also remove it from the 'top' area
|
28
|
-
$extraActionsList.prepend($currentTopButton)
|
29
|
-
|
30
|
-
|
31
|
-
# remove button from top and but to top of extra buttons
|
32
|
-
# move tapped butotn
|
33
|
-
|
34
|
-
$('body').on 'click', ->
|
35
|
-
$extraActionsList.removeClass('shown')
|
36
|
-
$se_option_list.removeClass('shown')
|
37
|
-
|
38
|
-
$ ->
|
39
|
-
setupDropdowns()
|