Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
jQuery Mobile friendly Alert Dialog by Brandon <firstname.lastname@example.org> 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/>.