Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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/>.

About

jQuery Mobile friendly alert dialog

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.