tenon 1.1.1 → 1.1.2
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/tenon/features/asset_cropping.js.coffee +2 -3
- data/app/assets/javascripts/tenon/templates/assets/asset_field.jst.eco +3 -3
- data/app/assets/javascripts/tenon/templates/assets/asset_row.jst.eco +1 -1
- data/app/assets/javascripts/tenon/tenon_manifest.js +0 -3
- data/app/views/tenon/assets/_asset.json.jbuilder +3 -3
- data/lib/tenon/engine.rb +0 -1
- data/lib/tenon/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c0d57c50698d4b12180c41bad775a3064da1fa
|
4
|
+
data.tar.gz: 68998a00932c907c04525014ca5aaa7924535dda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119b03f83c8471243ea0c122671c6882e3611e2d84b28eec57a5605fc9257493a44bb704d1592c806365d34c95baeecf7bf4f31f5bcee709a8a1baaa008e300c
|
7
|
+
data.tar.gz: 01d0e2dcd4a37ccc50b30e58aa86c9c85387f5804f41b1dd3ad6b5233456f16d9b92fb2f04508ec369d1dea77e5938d9e18f1ff50de72370a2ca3bba2865b273
|
@@ -13,8 +13,7 @@ class Tenon.features.AssetCropping
|
|
13
13
|
_loadCrop: (e) =>
|
14
14
|
e.preventDefault()
|
15
15
|
@$link = $(e.currentTarget)
|
16
|
-
|
17
|
-
$.get(url, {format: 'html'}, @_startCrop, 'html')
|
16
|
+
$.get(@$link.attr('href'), {format: 'html'}, @_startCrop, 'html')
|
18
17
|
|
19
18
|
_cancelCrop: (e) ->
|
20
19
|
e.preventDefault()
|
@@ -47,4 +46,4 @@ class Tenon.features.AssetCropping
|
|
47
46
|
$('#asset_crop_x').val(coords.x)
|
48
47
|
$('#asset_crop_y').val(coords.y)
|
49
48
|
$('#asset_crop_w').val(coords.w)
|
50
|
-
$('#asset_crop_h').val(coords.h)
|
49
|
+
$('#asset_crop_h').val(coords.h)
|
@@ -3,15 +3,15 @@
|
|
3
3
|
<div class="record-details">
|
4
4
|
<div class="record-title big">
|
5
5
|
<strong>
|
6
|
-
<a href="<%=
|
6
|
+
<a href="<%= @asset.edit_path %>"><%= @asset.display_name %></a>
|
7
7
|
</strong>
|
8
8
|
<div class="explanation">
|
9
9
|
<%= @asset.human_size %>
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
<div class="record-actions">
|
13
|
-
<a data-tooltip="Edit" href="<%=
|
14
|
-
<a data-confirm="Are you sure? There is no undo for this!" data-method="delete" data-tooltip="Delete" href="<%=
|
13
|
+
<a data-tooltip="Edit" href="<%= @asset.edit_path %>" title="Edit"><i class="fa fa-pencil"></i></a>
|
14
|
+
<a data-confirm="Are you sure? There is no undo for this!" data-method="delete" data-tooltip="Delete" href="<%= @asset.path %>" rel="nofollow" title="Delete"><i class="fa fa-trash-o"></i></a>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
</li>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="thumbnail"><%- @asset.icon %></div>
|
3
3
|
<div class="record-details">
|
4
4
|
<div class="record-title">
|
5
|
-
<a href="<%=
|
5
|
+
<a href="<%= @asset.edit_path %>" data-modal-remote="true" data-modal-title="Edit Asset"><%= @asset.display_name %></a>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="record-fields">
|
@@ -21,7 +21,6 @@
|
|
21
21
|
//= require jquery.radioSlider
|
22
22
|
//= require jquery.twoLevelSort
|
23
23
|
//= require jquery.ui.sortable
|
24
|
-
//= require js-routes
|
25
24
|
//= require select2
|
26
25
|
//= require uri
|
27
26
|
|
@@ -33,7 +32,6 @@
|
|
33
32
|
//= require underscore.string
|
34
33
|
//= require underscore.inflection
|
35
34
|
|
36
|
-
|
37
35
|
// -- Tenon things, don't mess with the order
|
38
36
|
//= require ./tenon
|
39
37
|
//= require ./tenon_dispatcher
|
@@ -43,7 +41,6 @@
|
|
43
41
|
//= require tenon_addons
|
44
42
|
//= require_self
|
45
43
|
|
46
|
-
|
47
44
|
$(function() {
|
48
45
|
Tenon.init();
|
49
46
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
json.extract!(asset,
|
2
2
|
:id, :display_name, :icon, :tile, :to_param, :human_size,
|
3
|
-
:attachment_content_type, :edit_link, :delete_link,
|
4
|
-
:crop_link, :download_link
|
3
|
+
:attachment_content_type, :edit_link, :delete_link, :edit_path,
|
4
|
+
:path, :crop_link, :download_link
|
5
5
|
)
|
6
6
|
json.style_urls asset.style_urls
|
7
|
-
json.json_style_urls asset.style_urls.to_json
|
7
|
+
json.json_style_urls asset.style_urls.to_json
|
data/lib/tenon/engine.rb
CHANGED
data/lib/tenon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- factor[e] design initiative
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_errors
|
@@ -514,20 +514,6 @@ dependencies:
|
|
514
514
|
- - '='
|
515
515
|
- !ruby/object:Gem::Version
|
516
516
|
version: 4.0.5
|
517
|
-
- !ruby/object:Gem::Dependency
|
518
|
-
name: js-routes
|
519
|
-
requirement: !ruby/object:Gem::Requirement
|
520
|
-
requirements:
|
521
|
-
- - '='
|
522
|
-
- !ruby/object:Gem::Version
|
523
|
-
version: 0.9.9
|
524
|
-
type: :runtime
|
525
|
-
prerelease: false
|
526
|
-
version_requirements: !ruby/object:Gem::Requirement
|
527
|
-
requirements:
|
528
|
-
- - '='
|
529
|
-
- !ruby/object:Gem::Version
|
530
|
-
version: 0.9.9
|
531
517
|
- !ruby/object:Gem::Dependency
|
532
518
|
name: later_dude
|
533
519
|
requirement: !ruby/object:Gem::Requirement
|