Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

mshibuya/jqmobi-ujs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unobtrusive scripting adapter for jqMobi

This is a port of jquery-ujs to jqMobi.

This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:

  • force confirmation dialogs for various actions;
  • make non-GET requests from hyperlinks;
  • make forms or hyperlinks submit data asynchronously with Ajax;
  • have submit buttons become automatically disabled on form submit to prevent double-clicking.

Requirements

Installation

For automated installation in Rails, use the "jqmobi-rails" gem. Place this in your Gemfile:

gem 'jqmobi-rails', :git => 'git://github.com/mshibuya/jqmobi-rails.git'

And run:

$ bundle install

Add these lines to the top of your app/assets/javascripts/application.js file:

//= require jq.mobi
//= require jq.mobi_ujs

About

Ruby on Rails unobtrusive scripting adapter for jqMobi, based on jquery-ujs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published