Produced by Araxis Merge on 2/1/2017 2:57:59 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\js | jquery.cookie.js | Tue Dec 20 19:50:42 2016 UTC |
| 2 | Wed Feb 1 19:57:59 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 88 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |||||
| 2 | jQuery Coo kie plugin | |||||
| 3 | Copyright (c) 2010 K laus Hartl (stilbuer o.de) | |||||
| 4 | ||||||
| 5 | Permission is hereby granted, free of ch arge, to a ny person obtaining a copy of this softw are and as sociated d ocumentati on files ( the "Softw are"), to deal in th e Software without r estriction , includin g without limitation the right s to use, copy, modi fy, merge, publish, distribute , sublicen se, and/or sell copi es of the Software, and to per mit person s to whom the Softwa re is furn ished to d o so, subj ect to the following condition s: | |||||
| 6 | ||||||
| 7 | The above copyright notice and this perm ission not ice shall be include d in all c opies or s ubstantial portions of the Sof tware. | |||||
| 8 | ||||||
| 9 | THE SOFTWA RE IS PROV IDED "AS I S", WITHOU T WARRANTY OF ANY KI ND, EXPRES S OR IMPLI ED, INCLUD ING BUT NO T LIMITED TO THE WAR RANTIES OF MERCHANTA BILITY, FI TNESS FOR A PARTICUL AR PURPOSE AND NONIN FRINGEMENT . IN NO EV ENT SHALL THE AUTHOR S OR COPYR IGHT HOLDE RS BE LIAB LE FOR ANY CLAIM, DA MAGES OR O THER LIABI LITY, WHET HER IN AN ACTION OF CONTRACT, TORT OR OT HERWISE, A RISING FRO M, OUT OF OR IN CONN ECTION WIT H THE SOFT WARE OR TH E USE OR O THER DEALI NGS IN THE SOFTWARE. | |||||
| 10 | */ | |||||
| 11 | ||||||
| 12 | // TODO Js Doc | |||||
| 13 | ||||||
| 14 | /** | |||||
| 15 | * Create a cookie w ith the gi ven key an d value an d other op tional par ameters. | |||||
| 16 | * | |||||
| 17 | * @exampl e $.cookie ('the_cook ie', 'the_ value'); | |||||
| 18 | * @desc S et the val ue of a co okie. | |||||
| 19 | * @exampl e $.cookie ('the_cook ie', 'the_ value', { expires: 7 , path: '/ ', domain: 'jquery.c om', secur e: true }) ; | |||||
| 20 | * @desc C reate a co okie with all availa ble option s. | |||||
| 21 | * @exampl e $.cookie ('the_cook ie', 'the_ value'); | |||||
| 22 | * @desc C reate a se ssion cook ie. | |||||
| 23 | * @exampl e $.cookie ('the_cook ie', null) ; | |||||
| 24 | * @desc D elete a co okie by pa ssing null as value. Keep in m ind that y ou have to use the s ame path a nd domain | |||||
| 25 | * u sed when t he cookie was set. | |||||
| 26 | * | |||||
| 27 | * @param String key The key o f the cook ie. | |||||
| 28 | * @param String val ue The val ue of the cookie. | |||||
| 29 | * @param Object opt ions An ob ject liter al contain ing key/va lue pairs to provide optional cookie att ributes. | |||||
| 30 | * @option Number|Da te expires Either an integer s pecifying the expira tion date from now o n in days or a Date object. | |||||
| 31 | * If a nega tive value is specif ied (e.g. a date in the past), the cooki e will be deleted. | |||||
| 32 | * If set to null or o mitted, th e cookie w ill be a s ession coo kie and wi ll not be retained | |||||
| 33 | * when the the browse r exits. | |||||
| 34 | * @option String pa th The val ue of the path atrib ute of the cookie (d efault: pa th of page that crea ted the co okie). | |||||
| 35 | * @option String do main The v alue of th e domain a ttribute o f the cook ie (defaul t: domain of page th at created the cooki e). | |||||
| 36 | * @option Boolean s ecure If t rue, the s ecure attr ibute of t he cookie will be se t and the cookie tra nsmission will | |||||
| 37 | * requ ire a secu re protoco l (like HT TPS). | |||||
| 38 | * @type u ndefined | |||||
| 39 | * | |||||
| 40 | * @name $ .cookie | |||||
| 41 | * @cat Pl ugins/Cook ie | |||||
| 42 | * @author Klaus Har tl/klaus.h artl@stilb uero.de | |||||
| 43 | */ | |||||
| 44 | ||||||
| 45 | /** | |||||
| 46 | * Get the value of a cookie w ith the gi ven key. | |||||
| 47 | * | |||||
| 48 | * @exampl e $.cookie ('the_cook ie'); | |||||
| 49 | * @desc G et the val ue of a co okie. | |||||
| 50 | * | |||||
| 51 | * @param String key The key o f the cook ie. | |||||
| 52 | * @return The value of the co okie. | |||||
| 53 | * @type S tring | |||||
| 54 | * | |||||
| 55 | * @name $ .cookie | |||||
| 56 | * @cat Pl ugins/Cook ie | |||||
| 57 | * @author Klaus Har tl/klaus.h artl@stilb uero.de | |||||
| 58 | */ | |||||
| 59 | jQuery.coo kie = func tion (key, value, op tions) { | |||||
| 60 | ||||||
| 61 | // key and value given, se t cookie.. . | |||||
| 62 | if (ar guments.le ngth > 1 & & (value = == null || typeof va lue !== "o bject")) { | |||||
| 63 | op tions = jQ uery.exten d({}, opti ons); | |||||
| 64 | ||||||
| 65 | if (value == = null) { | |||||
| 66 | options. expires = -1; | |||||
| 67 | } | |||||
| 68 | ||||||
| 69 | if (typeof o ptions.exp ires === ' number') { | |||||
| 70 | var days = options .expires, t = option s.expires = new Date (); | |||||
| 71 | t.setDat e(t.getDat e() + days ); | |||||
| 72 | } | |||||
| 73 | ||||||
| 74 | re turn (docu ment.cooki e = [ | |||||
| 75 | encodeUR IComponent (key), '=' , | |||||
| 76 | options. raw ? Stri ng(value) : encodeUR IComponent (String(va lue)), | |||||
| 77 | options. expires ? '; expires =' + optio ns.expires .toUTCStri ng() : '', // use ex pires attr ibute, max -age is no t supporte d by IE | |||||
| 78 | options. path ? '; path=' + o ptions.pat h : '', | |||||
| 79 | options. domain ? ' ; domain=' + options .domain : '', | |||||
| 80 | options. secure ? ' ; secure' : '' | |||||
| 81 | ]. join('')); | |||||
| 82 | } | |||||
| 83 | ||||||
| 84 | // key and possi bly option s given, g et cookie. .. | |||||
| 85 | option s = value || {}; | |||||
| 86 | var re sult, deco de = optio ns.raw ? f unction (s ) { return s; } : de codeURICom ponent; | |||||
| 87 | return (result = new RegEx p('(?:^|; )' + encod eURICompon ent(key) + '=([^;]*) ').exec(do cument.coo kie)) ? de code(resul t[1]) : nu ll; | |||||
| 88 | }; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.