Skip to content

Instantly share code, notes, and snippets.

View N30's full-sized avatar

Neo N30

View GitHub Profile
@N30
N30 / Mootools_hash_2_jQuery
Created October 25, 2010 20:10
first time using gist, trying to use alternative for a shor use of mootools hash!
var subcats = cats[foo_barcat_id].subcats;
var subcatHash = new Hash(subcats);
$$('tr[id^=all_fields_]').each(function(el) { if(el.id == 'all_fields_'+foo_barcat_id) { el.style.display = ''; } else { el.style.display = 'none'; }});
if(foo_barcat_id == 0 || subcatHash.getValues().length == 0) {
$('foo_barsubcat_id').options.length = 1;