semantic-rails-ui 0.0.8 → 0.0.9
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/semantic-rails-ui.js +0 -2
- data/app/assets/javascripts/semantic-rails-ui/confirm.coffee +15 -1
- data/lib/semantic-rails-ui/version.rb +1 -1
- data/semantic-rails-ui.gemspec +0 -1
- metadata +1 -16
- data/app/assets/javascripts/semantic-rails-ui/templates/confirm.hbs +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b2dfcb1966a16ac0dae4c185ba588d0aab3f72
|
4
|
+
data.tar.gz: df4de4f6a6d550ddf3c7932adafe77545b34bfeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d5394ddd8d87618dd3bd20cbf1dc5d51fb125d9f1dc4a44890d07f3b0709c13cbc1a0ce860867cad8451c13cc469bf588a060135072b5031cf999981ef982e
|
7
|
+
data.tar.gz: 68cb8954d4697ba0b97117e6706d1ab50950ef933a930a32f1dc1b8f6990f490466646e6edece6eec09f476574f6ed41f5e2363519703f3d69efb7379d7807af
|
@@ -11,8 +11,6 @@
|
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
13
|
//= require semantic-ui
|
14
|
-
//= require handlebars.runtime
|
15
|
-
//= require semantic-rails-ui/templates
|
16
14
|
//= require semantic-rails-ui/menu
|
17
15
|
//= require semantic-rails-ui/message
|
18
16
|
//= require semantic-rails-ui/confirm
|
@@ -1,6 +1,20 @@
|
|
1
1
|
jQuery ->
|
2
2
|
$.rails.confirm = (message) ->
|
3
|
-
|
3
|
+
confirm_dialog = """
|
4
|
+
<div id="ui-confirm-dialog" class="ui small modal">
|
5
|
+
<div class="header">Confirmation dialog</div>
|
6
|
+
<div class="content">#{message}</div>
|
7
|
+
<div class="actions">
|
8
|
+
<div class="ui red basic cancel inverted button">
|
9
|
+
<i class="remove icon"></i>No
|
10
|
+
</div>
|
11
|
+
<div class="ui green ok inverted button">
|
12
|
+
<i class="checkmark icon"></i>Yes
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
"""
|
17
|
+
$('body').append(confirm_dialog)
|
4
18
|
$('ui-confirm-dialog').modal(
|
5
19
|
'closable: false'
|
6
20
|
onApprove: -> return true
|
data/semantic-rails-ui.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-rails-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
@@ -164,20 +164,6 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 3.2.1
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: handlebars_assets
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 0.20.2
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 0.20.2
|
181
167
|
description: Create beautiful hrml layouts with semantic-ui, simple_form and rails
|
182
168
|
email:
|
183
169
|
- igor@masterybits.com
|
@@ -199,7 +185,6 @@ files:
|
|
199
185
|
- app/assets/javascripts/semantic-rails-ui/confirm.coffee
|
200
186
|
- app/assets/javascripts/semantic-rails-ui/menu.coffee
|
201
187
|
- app/assets/javascripts/semantic-rails-ui/message.coffee
|
202
|
-
- app/assets/javascripts/semantic-rails-ui/templates/confirm.hbs
|
203
188
|
- app/assets/stylesheets/semantic-rails-ui.sass
|
204
189
|
- app/assets/stylesheets/semantic-rails-ui/.keep
|
205
190
|
- app/helpers/semantic_rails_ui/ui_helper.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<div id="ui-confirm-dialog" class="ui small modal">
|
2
|
-
<div class="header">Confirmation dialog</div>
|
3
|
-
<div class="content">{{ message }}</div>
|
4
|
-
<div class="actions">
|
5
|
-
<div class="ui red basic cancel inverted button">
|
6
|
-
<i class="remove icon"></i>No
|
7
|
-
</div>
|
8
|
-
<div class="ui green ok inverted button">
|
9
|
-
<i class="checkmark icon"></i>Yes
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
</div>
|