OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
authoryasushiito <yas@pen-chan.jp>
Sun, 21 Dec 2014 23:44:25 +0000 (08:44 +0900)
committeryasushiito <yas@pen-chan.jp>
Sun, 21 Dec 2014 23:44:25 +0000 (08:44 +0900)
1  2 
app/assets/javascripts/models/panel_picture.js.coffee

@@@ -35,7 -35,11 +35,11 @@@ class Pettanr.PanelPicture extends Peta
      res\r
    \r
    filename: (picture) ->\r
-     picture.filename() + '?subdir=' + @flip()\r
+     q = if _.isEmpty(@flip())\r
+       ''\r
+     else\r
+       '?subdir=' + @flip()\r
+     picture.filename() + q\r
    \r
    r_url: (picture) ->\r
      '/pictures/' + @filename(picture)\r
@@@ -44,7 -48,7 +48,7 @@@
      new Pettanr.Image.SymbolPicture({\r
        attr: {\r
          src: picture.r_url(), \r
-         alt: @get('caption')\r
+         alt: @escape('caption')\r
        },\r
        picture: picture\r
      })\r
@@@ -61,7 -65,4 +65,7 @@@
    initialize: () ->\r
      if @id\r
        @url = @url + @id\r
 +    @bind('change:width', () ->\r
 +      console.log('cng')\r
 +    )\r
    \r