Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soldair/cddd745bc5514f5eeca7 to your computer and use it in GitHub Desktop.
Save soldair/cddd745bc5514f5eeca7 to your computer and use it in GitHub Desktop.
jquery.dirtyforms.helpers.alwaysdirty 1.2.2
{
"repository" : {
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git",
"type" : "git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"_rev" : "8-294a5e231667330b01952d80a1976d58",
"dist-tags" : {
"latest" : "1.2.2"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty",
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"readme" : "[![jquery-dirtyforms MyGet Build Status](https://www.myget.org/BuildSource/Badge/jquery-dirtyforms?identifier=193d9dab-a526-484e-8062-9a960322f246)](https://www.myget.org/)\r\n\r\n![Dirty Forms Logo](https://raw.githubusercontent.com/snikch/jquery.dirtyforms/master/branding/dirty-forms-logo.png)\r\n\r\n# jquery.dirtyforms.helpers.alwaysdirty\r\n\r\nThis is a helper module for the [jQuery Dirty Forms](https://github.com/snikch/jquery.dirtyforms) project.\r\n\r\n## Purpose\r\n\r\nThis helper causes Dirty Forms to always show a dirty status, effectively overriding the logic that causes the form \r\nto be dirty when one of the input or select HTML controls is updated. It was primarily written to demonstrate \r\nhow to write a custom helper, but may also be helpful in real-world scenarios where you don't want the user to navigate \r\nfrom the page without their explicit consent.\r\n\r\n## Prerequisites\r\n\r\nPrerequesites must be included in this order:\r\n\r\n- [jQuery](http://jquery.com) (>= 1.4.2)\r\n- [jquery.dirtyforms](https://github.com/snikch/jquery.dirtyforms)\r\n\r\n> If you are using a [Package Manager](#package-managers), these dependencies will be installed automatically, but depending on your environment you may still need to add references to them manually.\r\n\r\n## Download & Installation\r\nThere are several different ways to get the code. Some examples below:\r\n\r\n#### CDN\r\nThe Always Dirty helper is available over jsDelivr CDN and can directly included to every page.\r\n```HTML\r\n<script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/jquery.dirtyforms/1.2.1/jquery.dirtyforms.helpers.alwaysdirty.min.js\"></script>\r\n```\r\n\r\njsDelivr also supports [on-the-fly concatenation of files](https://github.com/jsdelivr/jsdelivr#load-multiple-files-with-single-http-request), so you can reference only 1 URL to get jQuery, jquery.facebox, jquery.dirtyforms, and jquery.dirtyforms.helpers.alwaysdirty in one request.\r\n```HTML\r\n<script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/g/jquery@1.11.3,jquery.facebox,jquery.dirtyforms@1.2.1(jquery.dirtyforms.min.js+jquery.dirtyforms.helpers.alwaysdirty.min.js)\"></script>\r\n```\r\n\r\n#### Self-Hosted\r\nDownload and save one of two available files to include the Always Dirty helper to your page, either the [latest distribution](https://raw.githubusercontent.com/NightOwl888/jquery.dirtyforms.helpers.alwaysdirty.dist/master/jquery.dirtyforms.helpers.alwaysdirty.js) or the [latest minified](https://raw.githubusercontent.com/NightOwl888/jquery.dirtyforms.helpers.alwaysdirty.dist/master/jquery.dirtyforms.helpers.alwaysdirty.min.js) version.\r\n```HTML\r\n<script type=\"text/javascript\" src=\"jquery.dirtyforms.helpers.alwaysdirty.min.js\"></script>\r\n```\r\n\r\nYou can also conveniently get all of the latest Dirty Forms files in one [Zip Download](https://github.com/NightOwl888/jquery.dirtyforms.dist/archive/master.zip).\r\n\r\n#### Package Managers\r\nThe Always Dirty helper is even available through [NPM](http://npmjs.org), [Bower](http://bower.io), and [NuGet](https://www.nuget.org/). Just use one of the following commands below to install the helper, including all dependencies.\r\n\r\n[![NPM version](https://badge.fury.io/js/jquery.dirtyforms.helpers.alwaysdirty.svg)](http://www.npmjs.org/package/jquery.dirtyforms.helpers.alwaysdirty)\r\n[![Bower version](https://badge.fury.io/bo/jquery.dirtyforms.helpers.alwaysdirty.svg)](http://bower.io/search/?q=jquery.dirtyforms.helpers.alwaysdirty)\r\n[![NuGet version](https://badge.fury.io/nu/jquery.dirtyforms.helpers.alwaysdirty.svg)](https://www.nuget.org/packages/jquery.dirtyforms.helpers.alwaysdirty/)\r\n\r\n[![NPM](https://nodei.co/npm/jquery.dirtyforms.helpers.alwaysdirty.png?compact=true)](https://nodei.co/npm/jquery.dirtyforms.helpers.alwaysdirty/)\r\n```\r\n// NPM\r\n$ npm install jquery.dirtyforms.helpers.alwaysdirty\r\n\r\n// Bower\r\n$ bower install jquery.dirtyforms.helpers.alwaysdirty\r\n\r\n// NuGet\r\nPM> Install-Package jquery.dirtyforms.helpers.alwaysdirty\r\n```\r\n\r\n## SourceMaps\r\n\r\nA [SourceMap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?hl=en_US&pli=1&pli=1) file is also available via CDN or your favorite package manager.\r\n\r\n#### CDN\r\n\r\n```HTML\r\n<script type=\"text/javascript\" src=\"//cdn.jsdelivr.net/jquery.dirtyforms/1.2.1/jquery.dirtyforms.helpers.alwaysdirty.min.js.map\"></script>\r\n```\r\n\r\n#### Package Managers\r\n\r\nNPM, Bower, and NuGet will install the SourceMap file into the destination directory.\r\n\r\n```\r\njquery.dirtyforms.helpers.alwaysdirty.min.js.map\r\n```\r\n\r\n## Usage\r\n\r\nThis helper is completely automatic - there are no properties or methods to interact with. Simply include the reference to the helper after the [prerequisites](#prerequisites).\r\n\r\n```HTML\r\n<script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\" type=\"text/javascript\"></script>\r\n<script src=\"//cdn.jsdelivr.net/jquery.dirtyforms/1.2.1/jquery.dirtyforms.min.js\" type=\"text/javascript\"></script>\r\n<script src=\"//cdn.jsdelivr.net/jquery.dirtyforms/1.2.1/jquery.dirtyforms.helpers.alwaysdirty.min.js\" type=\"text/javascript\"></script>\r\n```\r\n\r\n> If not using a CDN, you need to apply the dependencies in the same order as in the example above.",
"time" : {
"1.0.0-beta.1" : "2015-06-24T19:17:42.111Z",
"1.1.2" : "2015-06-25T09:11:14.707Z",
"1.0.0" : "2015-06-22T01:20:08.252Z",
"1.2.2" : "2015-07-05T14:44:14.019Z",
"created" : "2015-06-22T01:20:08.252Z",
"1.1.0" : "2015-06-23T18:23:13.879Z",
"1.2.0" : "2015-06-28T16:54:22.663Z",
"1.1.1" : "2015-06-24T19:23:58.178Z",
"modified" : "2015-07-05T14:44:14.019Z",
"1.2.1" : "2015-06-30T04:32:22.655Z"
},
"license" : {
"type" : "MIT",
"url" : "http://www.opensource.org/licenses/mit-license.php"
},
"readmeFilename" : "README.md",
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
],
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"author" : {
"name" : "Mal Curtis",
"email" : "mal@mal.co.nz"
},
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"versions" : {
"1.1.1" : {
"license" : {
"type" : "MIT",
"url" : "http://www.opensource.org/licenses/mit-license.php"
},
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
],
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"dist" : {
"shasum" : "bb25ac6ccefce58b278b6f91117784259c5224d6",
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.1.1.tgz"
},
"author" : "Mal Curtis <mal@mal.co.nz>",
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"version" : "1.1.1",
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"repository" : {
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git",
"type" : "git"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.1.1",
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
}
},
"1.2.0" : {
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.2.0",
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
},
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"version" : "1.2.0",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"dist" : {
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.2.0.tgz",
"shasum" : "540ad5533ba66834e48983905245e1ff42be5d75"
},
"author" : "Mal Curtis <mal@mal.co.nz>",
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"maintainers" : [
{
"name" : "nightowl888",
"email" : "sstorhaug@webuniverse.net"
}
],
"license" : {
"type" : "MIT",
"url" : "http://www.opensource.org/licenses/mit-license.php"
}
},
"1.0.0" : {
"_shasum" : "668de8c58bdd194384b6a1245f63c1fac351ebf3",
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
],
"_resolved" : "file:jquery.dirtyforms.helpers.alwaysdirty.1.0.0.tgz",
"_npmVersion" : "2.8.3",
"license" : {
"url" : "http://www.opensource.org/licenses/mit-license.php",
"type" : "MIT"
},
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"version" : "1.0.0",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"dist" : {
"shasum" : "668de8c58bdd194384b6a1245f63c1fac351ebf3",
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.0.0.tgz"
},
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"author" : {
"name" : "Mal Curtis",
"email" : "mal@mal.co.nz"
},
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.0.0",
"_npmUser" : {
"name" : "nightowl888",
"email" : "sstorhaug@webuniverse.net"
},
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"_nodeVersion" : "0.12.2",
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"_from" : "jquery.dirtyforms.helpers.alwaysdirty.1.0.0.tgz"
},
"1.0.0-beta.1" : {
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
],
"license" : {
"url" : "http://www.opensource.org/licenses/mit-license.php",
"type" : "MIT"
},
"version" : "1.0.0-beta.1",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"author" : "Mal Curtis <mal@mal.co.nz>",
"dist" : {
"shasum" : "94c36e12ff8bdb6536e53ba89d93d804ada767b1",
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.0.0-beta.1.tgz"
},
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.0.0-beta.1",
"repository" : {
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git",
"type" : "git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme"
},
"1.1.2" : {
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"_npmUser" : {
"name" : "nightowl888",
"email" : "sstorhaug@webuniverse.net"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.1.2",
"dist" : {
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.1.2.tgz",
"shasum" : "46a8ce6c65d30283c7a05dfc12b3f38e7ce4bac8"
},
"author" : "Mal Curtis <mal@mal.co.nz>",
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"version" : "1.1.2",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"license" : {
"url" : "http://www.opensource.org/licenses/mit-license.php",
"type" : "MIT"
},
"maintainers" : [
{
"name" : "nightowl888",
"email" : "sstorhaug@webuniverse.net"
}
]
},
"1.2.2" : {
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"dist" : {
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.2.2.tgz",
"shasum" : "9463638ac4da86cd61b76b7e17955c28d6a35e4c"
},
"author" : {
"email" : "mal@mal.co.nz",
"name" : "Mal Curtis"
},
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"version" : "1.2.2",
"_resolved" : "file:jquery.dirtyforms.helpers.alwaysdirty-1.2.2.tgz",
"license" : {
"url" : "http://www.opensource.org/licenses/mit-license.php",
"type" : "MIT"
},
"_npmVersion" : "2.12.1",
"_shasum" : "9463638ac4da86cd61b76b7e17955c28d6a35e4c",
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
],
"_nodeVersion" : "0.12.2",
"_from" : "jquery.dirtyforms.helpers.alwaysdirty-1.2.2.tgz",
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.2.2"
},
"1.1.0" : {
"_nodeVersion" : "0.12.2",
"_from" : "jquery.dirtyforms.helpers.alwaysdirty.1.1.0.tgz",
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.1.0",
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"author" : {
"name" : "Mal Curtis",
"email" : "mal@mal.co.nz"
},
"dist" : {
"shasum" : "1580cd8bf9ff9ff296745947b49d86f85fce0c72",
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.1.0.tgz"
},
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"version" : "1.1.0",
"_resolved" : "file:jquery.dirtyforms.helpers.alwaysdirty.1.1.0.tgz",
"_npmVersion" : "2.8.3",
"license" : {
"type" : "MIT",
"url" : "http://www.opensource.org/licenses/mit-license.php"
},
"_shasum" : "1580cd8bf9ff9ff296745947b49d86f85fce0c72",
"maintainers" : [
{
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
]
},
"1.2.1" : {
"version" : "1.2.1",
"name" : "jquery.dirtyforms.helpers.alwaysdirty",
"main" : "jquery.dirtyforms.helpers.alwaysdirty.min.js",
"dist" : {
"tarball" : "http://registry.npmjs.org/jquery.dirtyforms.helpers.alwaysdirty/-/jquery.dirtyforms.helpers.alwaysdirty-1.2.1.tgz",
"shasum" : "09409e488281f6907357dc71fa7cc5f9f3468c67"
},
"author" : "Mal Curtis <mal@mal.co.nz>",
"description" : "A helper to force forms to always be dirty when using JQuery Dirty Forms.",
"bugs" : {
"url" : "https://github.com/snikch/jquery.dirtyforms/issues"
},
"files" : [
"jquery.dirtyforms.helpers.alwaysdirty.*",
"LICENSE*"
],
"maintainers" : [
{
"name" : "nightowl888",
"email" : "sstorhaug@webuniverse.net"
}
],
"license" : {
"url" : "http://www.opensource.org/licenses/mit-license.php",
"type" : "MIT"
},
"dependencies" : {
"jquery.dirtyforms" : ">=1.0.0"
},
"scripts" : {
"test" : "echo \"Error: no test specified\" && exit 1"
},
"homepage" : "https://github.com/snikch/jquery.dirtyforms#readme",
"_id" : "jquery.dirtyforms.helpers.alwaysdirty@1.2.1",
"repository" : {
"type" : "git",
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
"confirmation",
"validate",
"validation",
"areyousure",
"jquery-plugin",
"ecosystem:jquery"
],
"_npmUser" : {
"email" : "sstorhaug@webuniverse.net",
"name" : "nightowl888"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment