Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

PaginationLinksRemote

Rails.PaginationLinksRemote History

Hide minor edits - Show changes to markup

April 04, 2007, at 09:45 PM by 85.105.66.26
Changed line 1 from:

Aşağıdaki kod "window_size" değişkeninin değerine g�re safya linklerini oluşturur.

to:

Aşağıdaki kod bir ajax uygulamasında kullanılmak �zere safya linklerini oluşturur.

April 04, 2007, at 09:41 PM by 85.105.66.26
Changed line 31 from:

http://dev.nozav.org/index.html

to:

http://dev.nozav.org/index.html

April 04, 2007, at 09:40 PM by 85.105.66.26
Changed lines 1-2 from:

app/helpers/apllication_helper.rb

to:

Aşağıdaki kod "window_size" değişkeninin değerine g�re safya linklerini oluşturur. �rnek:

Added lines 4-14:

1 ... 5 6 7 ... 13 =]

Bu kod herhangi bir helper i�inde kullanılacağı gibi en makul yer application_helper.rb dosyasıdır. (:code:) app/helpers/application_helper.rb

(:code:)[=

April 04, 2007, at 09:35 PM by 85.105.66.26
Changed lines 4-15 from:
	def pagination_links_remote(paginator)
		page_options = {:window_size => 1}
		pagination_links_each(paginator, page_options) do |n|
			options = {
				:url => {:action => 'list', :params => @params.merge({:page => n})},
				:update => 'table',
				:before => "Element.show('spinner')",
				:success => "Element.hide('spinner')"
			}
			html_options = {:href => url_for(:action => 'list', :params => @params.merge({:page => n}))}
			link_to_remote(n.to_s, options, html_options)
		end
to:

def pagination_links_remote(paginator)

	page_options = {:window_size => 1}
	pagination_links_each(paginator, page_options) do |n|
		options = {
			:url => {:action => 'list', :params => @params.merge({:page => n})},
			:update => 'table',
			:before => "Element.show('spinner')",
			:success => "Element.hide('spinner')"
		}
		html_options = {:href => url_for(:action => 'list', :params => @params.merge({:page => n}))}
		link_to_remote(n.to_s, options, html_options)
Changed lines 16-17 from:

=]

to:

end =]

Kaynaklar:

http://dev.nozav.org/index.html

April 04, 2007, at 09:34 PM by 85.105.66.26
Added lines 1-18:

app/helpers/apllication_helper.rb

(:code:) def pagination_links_remote(paginator) page_options = {:window_size => 1} pagination_links_each(paginator, page_options) do |n| options = { :url => {:action => 'list', :params => @params.merge({:page => n})}, :update => 'table', :before => "Element.show('spinner')", :success => "Element.hide('spinner')" } html_options = {:href => url_for(:action => 'list', :params => @params.merge({:page => n}))} link_to_remote(n.to_s, options, html_options) end end

Edit - History - Print - Recent Changes - Search
Page last modified on April 04, 2007, at 09:45 PM