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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa5eb843bd34b0d3e4ddb4f47fa186294da91ba0
4
- data.tar.gz: cadd3f3e32a7120f4a55904be88aeec73535dc89
3
+ metadata.gz: 03c0d57c50698d4b12180c41bad775a3064da1fa
4
+ data.tar.gz: 68998a00932c907c04525014ca5aaa7924535dda
5
5
  SHA512:
6
- metadata.gz: 65fbc8d82223e1ecffaf92eb284e1cbdbcc4814ca6a87c49298b63247e1ace23f7961e68154a0cbb46e3a6062553d8816664276c25d84cf10d90f148e9fff490
7
- data.tar.gz: a3b7dfd383995b186832996a9864aa645473e3d67e459e467e19401b7c1394b4dfd6243667d7f76b5340a15d5437dc6722da474cfa849b280618579ca4ce36fe
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
- url = Routes.tenon_crop_asset_path(@$link.data('asset-id'))
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="<%= Routes.tenon_edit_asset_path(@asset.id) %>"><%= @asset.display_name %></a>
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="<%= Routes.tenon_edit_asset_path(@asset.id) %>" 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="<%= Routes.tenon_asset_path(@asset.id) %>" rel="nofollow" title="Delete"><i class="fa fa-trash-o"></i></a>
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="<%= Routes.tenon_edit_asset_path(@asset.id) %>" data-modal-remote="true" data-modal-title="Edit Asset"><%= @asset.display_name %></a>
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
@@ -19,7 +19,6 @@ require 'jbuilder'
19
19
  require 'jquery-fileupload-rails'
20
20
  require 'jquery-rails'
21
21
  require 'jquery-ui-rails'
22
- require 'js-routes'
23
22
  require 'later_dude'
24
23
  require 'launchy'
25
24
  require 'lodash-rails'
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.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-10 00:00:00.000000000 Z
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