diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 14:52:24 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 14:52:24 +0000 |
commit | e92e81943165dce60cdd9b2cf8ebdc1c55acc7fb (patch) | |
tree | 39df1adae252c9195fa3a1ea39dd4fe7ce71e861 /views/_acknowledge_input.haml | |
parent | 044d34c09f446cfca04e8ff1c53a3c5435cf77d8 (diff) |
Updated acknowledge form to allow more things to be done.
--HG--
rename : views/_acknowledge_input.haml => views/_alert_actions.haml
Diffstat (limited to 'views/_acknowledge_input.haml')
-rw-r--r-- | views/_acknowledge_input.haml | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/views/_acknowledge_input.haml b/views/_acknowledge_input.haml deleted file mode 100644 index 82f3044..0000000 --- a/views/_acknowledge_input.haml +++ /dev/null @@ -1,34 +0,0 @@ -Acknowledge these alerts for -%input#n_hours{ :name => 'n_hours', :type => "number", :min => 0, :max => 48, :value => 2, :style => "min-width: 6ex;"} -%select#type_hours{:name => 'type_of_hours' } - -# Default to daytime hours - %option{ :value => "working" } working - %option{ :value => "daytime", :selected => "selected"} daytime - %option{ :value => "wallclock" } wall-clock -hours -%span#ack_until_text -%input#ack_until{ :value => '', :type => :hidden, :name => 'ack_until' } -%br -with the note -%input#note{ :name => 'note', :type => "text"} -%input{ :type => 'submit', :value => 'Go!' } -:javascript - // Change of value in the hours box - $('#n_hours').change( function() { - updateDate(); - }); - // As above, but on keypress, with a delay - $('#n_hours').keyup( function() { - clearTimeout($.data(this, 'timer')); - var wait = setTimeout(updateDate, 500); - $(this).data('timer', wait); - }); - // Same as the n_hours change function - $('#type_hours').change( function() { - $('#n_hours').change(); - }); - // Setup the ack text on load. - $(document).ready( function() { - $('#n_hours').change(); - }); - |