• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Voice data server for navigation voice changer app.


Commit MetaInfo

Revisionf16de13a6da8302dc7277f80f9f2305a7a4778cd (tree)
Time2016-10-05 21:48:29
AuthorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Fix raty asset path.

Change Summary

Incremental Difference

--- a/app/assets/javascripts/jquery.raty.js.erb
+++ b/app/assets/javascripts/jquery.raty.js.erb
@@ -437,8 +437,8 @@
437437 $.fn.raty.defaults = {
438438 cancel : false,
439439 cancelHint : 'Cancel this rating!',
440- cancelOff : '<%= asset_path 'cancel-off.png' %>',
441- cancelOn : '<%= asset_path 'cancel-on.png' %>',
440+ cancelOff : '<%= image_path 'cancel-off.png' %>',
441+ cancelOn : '<%= image_path 'cancel-on.png' %>',
442442 cancelPlace : 'left',
443443 click : undefined,
444444 half : false,
@@ -459,9 +459,9 @@
459459 single : false,
460460 size : 16,
461461 space : true,
462- starHalf : '<%= asset_path 'star-half.png' %>',
463- starOff : '<%= asset_path 'star-off.png' %>',
464- starOn : '<%= asset_path 'star-on.png' %>',
462+ starHalf : '<%= image_path 'star-half.png' %>',
463+ starOff : '<%= image_path 'star-off.png' %>',
464+ starOn : '<%= image_path 'star-on.png' %>',
465465 target : undefined,
466466 targetFormat : '{score}',
467467 targetKeep : false,
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -20,7 +20,7 @@ module ApplicationHelper
2020 ret = content_tag :span, "", id: "rating_nv_#{nvobj.id}", class: 'rating-container'
2121 ret += javascript_tag %Q(
2222 $('#rating_nv_#{nvobj.id}').raty({
23- score: #{nvobj.rating}, path: '#{root_path}assets', readOnly: true
23+ score: #{nvobj.rating}, readOnly: true
2424 });
2525 )
2626 ret