utility_box 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,20 +20,20 @@ Or install it yourself as:
20
20
 
21
21
  ### Javascripts
22
22
 
23
- - connection_manager
24
- - ellipsis
25
- - events
26
- - form
27
- - preload_images
28
- - pusher
29
- - strings
30
- - tables
23
+ - [Connection Manager](https://github.com/digitalopera/utility_box/wiki/Connection-Manager)
24
+ - [Ellipsis](https://github.com/digitalopera/utility_box/wiki/Ellipsis)
25
+ - [Events](https://github.com/digitalopera/utility_box/wiki/Events)
26
+ - [Forms](https://github.com/digitalopera/utility_box/wiki/Forms)
27
+ - [Preload Images](https://github.com/digitalopera/utility_box/wiki/Preload-Images)
28
+ - [Pusher](https://github.com/digitalopera/utility_box/wiki/Pusher)
29
+ - [Strings](https://github.com/digitalopera/utility_box/wiki/Strings)
30
+ - [Tables](https://github.com/digitalopera/utility_box/wiki/Tables)
31
31
 
32
32
  ### Stylesheets
33
33
 
34
34
  - [Twitter Bootstrap SASS](https://github.com/thomas-mcdonald/bootstrap-sass)
35
35
  - [Font Awesome SASS](https://github.com/littlebtc/font-awesome-sass-rails)
36
- - mixins
36
+ - [Mixins](https://github.com/digitalopera/utility_box/wiki/Mixins)
37
37
 
38
38
  ## Contributing
39
39
 
@@ -7,7 +7,7 @@
7
7
  #
8
8
 
9
9
  do ->
10
- key = $('meta[name=pusher-key]').attr('content')
10
+ key = $('meta[name="pusher-key"]').attr('content')
11
11
 
12
12
  if key
13
13
  window.utilityBox.pusher = new Pusher(key)
@@ -1,2 +1,10 @@
1
1
  $(document).on 'click', 'tr[data-href]', (e) ->
2
- window.location = $(e.currentTarget).attr('data-href')
2
+ target = $(e.target)
3
+ currentTarget = $(e.currentTarget)
4
+ if target.is('a') == false && target.parents('a').length == 0 # check to make sure click isn't within a link
5
+ href = currentTarget.attr('data-href')
6
+ if currentTarget.attr('data-blank') == 'true'
7
+ win = window.open(href, '_blank')
8
+ win.focus()
9
+ else
10
+ window.location = href
@@ -1,5 +1,5 @@
1
1
  module UtilityBox
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utility_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap-sass
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 1.8.23
140
+ rubygems_version: 1.8.24
141
141
  signing_key:
142
142
  specification_version: 3
143
143
  summary: Adds a bunch of utility Javascript and CSS scaffolding via Twiiter Bootstrap