lib/volt/volt/client_setup/browser.rb in volt-0.9.5.pre4 vs lib/volt/volt/client_setup/browser.rb in volt-0.9.5.pre5

- old
+ new

@@ -37,9 +37,20 @@ end end end def link_clicked(url = '', event = nil) + target = nil + `target = $(event.target).attr('target');` + `if (!target) {` + `target = #{nil};` + `}` + + if target.present? && target != '_self' + # Don't handle if they are opening in a new window + return true + end + # Skip when href == '' return false if url.blank? # Normalize url if @volt_app.url.parse(url) \ No newline at end of file