sybil 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- <div id="sybil_user_picker" style="display:none;position:absolute;left:25%;width:50%;padding: 20px; background-color:rgba(0,0,0,.8); text-align:center;border-radius:5px;box-shadow: 0 0 5px 5px rgba(0,0,0,.5);z-index:999;">
1
+ <div id="sybil_user_picker" style="display:none;position:fixed;left:25%;width:50%;padding: 20px; background-color:rgba(0,0,0,.8); text-align:center;border-radius:5px;box-shadow: 0 0 5px 5px rgba(0,0,0,.5);z-index:999;">
2
2
  <h1 style="color:white;border-bottom:solid white 1px;padding-bottom:5px;font-size:200%;">Sybil</h1>
3
3
  <br />
4
4
  <select name="id">
@@ -25,9 +25,9 @@
25
25
  $.post('<%= sybil_login_path %>', { id: id }, function() { location.reload(true); });
26
26
  hideSybilUserPicker();
27
27
  });
28
- $(document).keypress(function(e){
28
+ $(document).keyup(function(e){
29
29
  // TODO: Make key combination configurable
30
- if((e.keyCode==21) || (e.ctrlKey && (e.charCode==117))){
30
+ if(e.ctrlKey && (e.keyCode==85)){
31
31
  if($up.filter(':visible').length==0)
32
32
  {
33
33
  $up.show();
@@ -36,6 +36,8 @@
36
36
  hideSybilUserPicker();
37
37
  }
38
38
  }
39
+
40
+ if(e.keyCode == 27) hideSybilUserPicker();
39
41
  });
40
42
  $('body').click(function(e){
41
43
  $target = $(e.target);
data/lib/sybil/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sybil
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sybil
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jim Ryan
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-24 00:00:00 -04:00
13
+ date: 2011-05-25 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16