OSDN Git Service

fix:view
[pettanr/pettanr.git] / app / assets / javascripts / view / button / shortable_caption.js.coffee
diff --git a/app/assets/javascripts/view/button/shortable_caption.js.coffee b/app/assets/javascripts/view/button/shortable_caption.js.coffee
new file mode 100644 (file)
index 0000000..b957796
--- /dev/null
@@ -0,0 +1,6 @@
+class Pettanr.View.ShortableCaption extends Pettanr.View.Button\r
+  \r
+  initialize: (item, column_name, options) ->\r
+    content = item.short(column_name, options.length)\r
+    super(item.show_url(), content, options)\r
+  \r