Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed filter update

  • Loading branch information...
commit ff64e5301572266931c0ece99bb23dd88075e174 1 parent 8e3c872
Cristi Duma authored
View
13 app/views/admin/tiny_paper/_files_titles.html.haml
@@ -1,22 +1,17 @@
#tp_ajax_update.clearfix
#tp_middle.clearfix
- .hd
- .c
- .bd
- #tp_pages
- = will_paginate @assets, :inner_window => 1, :outer_window => 0
- .ft
- .c
+ #tp_pages
+ = will_paginate @assets, :inner_window => 1, :outer_window => 0
#tp_titles_holder
- index = (list_params[:page].to_i - 1) * 25
- %table
+ %table#tp_assets
%thead
%tr
%th No.
%th= sortable_column_head "File name", :title
%th= sortable_column_head "File type", :asset_content_type
%th File size
- %tbody#tp_assets
+ %tbody
- @assets.each do |asset|
- index = index + 1
%tr
View
2  app/views/admin/tiny_paper/files.html.haml
@@ -22,7 +22,7 @@
evalScripts:true,
method:'get',
onComplete: function(request){when_completing()},
- parameters: 'title=' + escape(value) + '&authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>')
+ parameters: 'title=' + escape(value) + '&authenticity_token=' + encodeURIComponent('#{form_authenticity_token}')
})
})
= reset_filters_tag
View
2  app/views/admin/tiny_paper/images.html.haml
@@ -18,7 +18,7 @@
evalScripts:true,
method:'get',
onComplete: function(request){when_completing()},
- parameters: 'title=' + escape(value) + '&authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>')
+ parameters: 'title=' + escape(value) + '&authenticity_token=' + encodeURIComponent('#{form_authenticity_token}')
})
})
= reset_filters_tag
View
6 public/stylesheets/admin/tiny_paper.css
@@ -48,9 +48,9 @@ span.tp_image_sizes {background-color:#FFF;position:absolute;left:
border:1px solid #000;padding:10px;width:380px;min-height:150px;}
/* text list */
table#tp_assets {width:90%;margin:0 5%;}
-table#tp_assets th {font-size:14px;text-align:left;padding:0 10px;}
-table#tp_assets td {padding:0 10px;border-left:1px solid #2B6FB6;}
-table#tp_assets td.index {text-align:right;border-left:none;width:25px;}
+#tp_assets th {font-size:14px;text-align:left;padding:0 10px;}
+#tp_assets td {padding:0 10px;border-left:1px solid #2B6FB6;}
+#tp_assets td.index {text-align:right;border-left:none;width:25px;}
table#tp_assets a {text-decoration:none;text-align:center;}
table#tp_sizes tr:hover {color:#2B6FB6;}
table#tp_sizes {width:90%;}
Please sign in to comment.
Something went wrong with that request. Please try again.