Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

jQuery Mobile friendly alert dialog

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README fixed repeated alerts being shown June 27, 2011
Octocat-spinner-32 jquery.mobile.alert.css initial commit June 23, 2011
Octocat-spinner-32 jquery.mobile.alert.js fixed repeated alerts being shown June 27, 2011
README
jQuery Mobile friendly Alert Dialog
by Brandon <antizeph@gmail.com>

6/27/2011 - bug fix

I made this quick and dirty script for a work project but I thought it could be useful to others.
I use it as success/error notifications with modal mode disabled, like "Successfully added to cart" or "Error blahing the blah".

Please tell me how badly this thing is made, I'll gladly commit anything that makes it better!


USAGE:
To call up an alert dialog:
	$.mobile.alert("your text", "title");
*note: the title is not currently being used, but I put it there to support one if needed*

Modal mode is on by default (dimming background).
To disable: $.mobile.modal = false; (in mobileinit bind for global setting; I'd like to have it be $.mobile.alert.modal instead.)

-----
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Something went wrong with that request. Please try again.