Skip to content

Instantly share code, notes, and snippets.

@raulb
Created August 1, 2011 11:26
Show Gist options
  • Save raulb/1117970 to your computer and use it in GitHub Desktop.
Save raulb/1117970 to your computer and use it in GitHub Desktop.
Ability dragabble options to each cases in a table
window.bookmarklet = function(opts){fullFunc(opts)};
// These are the styles, scripts and callbacks we include in our bookmarklet:
window.bookmarklet({
js : ['http://dl.dropbox.com/u/3655882/jquery.tablednd_0_5.js'],
jqpath : 'http://jquery.com/src/jquery-latest.js',
ready : function(){
$('table').tableDnD();
}
})
function fullFunc(a){function d(b){if(b.length===0){a.ready();return false}$.getScript(b[0],function(){d(b.slice(1))})}function e(b){$.each(b,function(c,f){$("<link>").attr({href:f,rel:"stylesheet"}).appendTo("head")})}a.jqpath=a.jqpath||"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js";(function(b){var c=document.createElement("script");c.type="text/javascript";c.src=b;c.onload=function(){d(a.js)};document.body.appendChild(c)})(a.jqpath)};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment