lib/ruby_app/elements/mobile/pages/information/scripts_page.rb in RubyApp-0.5.16 vs lib/ruby_app/elements/mobile/pages/information/scripts_page.rb in RubyApp-0.5.17
- old
+ new
@@ -20,10 +20,10 @@
super
@back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
@scripts_list = RubyApp::Elements::Mobile::Pages::Information::ScriptsList.new
- @scripts_list.clicked do |element, event|
+ @scripts_list.item_clicked do |element, event|
if RubyApp::Session.configuration.scripts.enabled
event.go(event.item.url)
else
RubyApp::Elements::Mobile::Dialog.show(event, RubyApp::Elements::Mobile::Dialogs::AcknowledgementDialog.new('Scripts', 'Scripts are currently disabled.'), :transition => 'pop')
end