OSDN Git Service

add scroll player
[pettanr/pettanr.git] / lib / locmare / list_group / lib / page_status.rb
index 06e5395..e38efde 100644 (file)
@@ -14,7 +14,7 @@ module Locmare
           
           def to_hash
             {
-              :type => :default, :total => @total, 
+              :type => :default, :total => @total, :total_page => self.total_page, 
               :page => self.page, :page_size => self.limit
             }
           end
@@ -85,7 +85,7 @@ module Locmare
           
           def to_hash
             {
-              :type => :offset, :total => @total, 
+              :type => :offset, :total => @total, :total_page => self.total_page, 
               :offset => self.offset, :count => self.limit
             }
           end