Sha256: 898b3fbacbfd4eeb2b4bc96a81df2de584261de2ce642523e951b5cbcc7cd836

Contents?: true

Size: 1.62 KB

Versions: 7

Compression:

Stored size: 1.62 KB

Contents

jQuery.DSt=function(){var c={version:0.002005,get:function(a){a=localStorage.getItem(a);a=a===undefined||a===null?"null":a.toString();return JSON.parse(a)},set:function(a,b){return localStorage.setItem(a,JSON.stringify(b))},store:function(a){if(typeof a=="string")a=document.getElementById(a);if(!a||a.name=="")return this;var b=c._form_elt_key(a);if(a.type=="checkbox")c.set(b,a.checked?1:0);else a.type=="radio"?c.set(b,c._radio_value(a)):c.set(b,a.value||"");return this},recall:function(a){if(typeof a==
"string")a=document.getElementById(a);if(!a||a.name=="")return this;var b=c._form_elt_key(a);b=c.get(b);if(a.type=="checkbox")a.checked=!!b;else if(a.type=="radio"){if(a.value==b)a.checked=true}else a.value=b||"";return this},_form_elt_key:function(a){return"_form_"+a.form.name+"_field_"+a.name},_radio_value:function(a){if(typeof a=="string")a=document.getElementById(a);a=a.form.elements[a.name];for(var b=a.length,f=null,e=0;e<b;e++)if(a[e].checked)f=a[e].value;return f},recall_form:function(a){return c._apply_fn_to_form_inputs(a,
c.recall)},store_form:function(a){return c._apply_fn_to_form_inputs(a,c.store)},_apply_fn_to_form_inputs:function(a,b){if(typeof a=="string")a=document.getElementById(a);for(var f=a.elements.length,e=0;e<f;e++){var d=a.elements[e];if(d.tagName=="TEXTAREA"||d.tagName=="INPUT"&&d.type!="file"&&d.type!="button"&&d.type!="image"&&d.type!="password"&&d.type!="submit"&&d.type!="reset")b(d)}return this},_storage_types:function(){var a="",b;for(b in window)if(b=="sessionStorage"||b=="globalStorage"||b=="localStorage"||
b=="openDatabase")a+=a?" "+b:b;return a},javascript_accepts_trailing_comma:false};return c}();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
compass-jquery-plugin-0.3.2.7 templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.7.nil templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.6 templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.5 templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.4 templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.3 templates/jquery/jquery.dst.min.js
compass-jquery-plugin-0.3.2.2 templates/jquery/jquery.dst.min.js