Skip to content

Instantly share code, notes, and snippets.

View gigi81's full-sized avatar

Luigi Grilli gigi81

View GitHub Profile
@gigi81
gigi81 / jquery.parsejson.js
Created February 20, 2012 08:51
jQuery parseJSON with .net and iso date support
/*!
* jQuery.parseJSON() extension (supports ISO & Asp.net date conversion)
*
* Version 1.0 (13 Jan 2011)
*
* Copyright (c) 2011 Robert Koritnik
* Licensed under the terms of the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
@gigi81
gigi81 / jquery-ui.unobtrusive.js
Last active September 29, 2015 12:38
jQuery UI unobtrusive
(function ($) {
var createWidgets = function ($el) {
var data = $el.attr('data-jqueryui');
var widget = data, options = null, index = data.indexOf(':');
if (index > 0) {
widget = data.substr(0, index);
eval("options = " + data.substr(index + 1).trim());
}
// Sanity check: can't directly check that it's truly a _widget_, but