This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.sortOptions = function(ascending) | |
{ | |
var _sortFunc; | |
if ( typeof(ascending) == "function") { | |
_sortFunc = ascending; | |
} else if (!!ascending) { | |
_sortFunc = function(a,b) { | |
return a.text < b.text ? -1 : 1; | |
} | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Copyright (c) 2006-2009 Sam Collett (http://www.texotela.co.uk) | |
* Modified by Phil Schalm to allow custom sorting via a passed in function | |
* | |
*/ | |
$.fn.sortOptions = function(ascending) | |
{ | |
// get selected values first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- The cheater way --> | |
<a href="javascript:window.history.go(-2);">Go back 2 history</a> | |
<!-- The more correct way --> | |
<span id="go-back">Go back</span> | |
<script type="text/javascript"> | |
document.getElementById('go-back').onclick = function() { | |
window.history.go(-2); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEvent('domready',function(){ | |
if ($('section-menu')) { | |
$('section-menu').getElements('a.menuitem').each(function(n){ | |
n.addEvent('click',function(ev){ | |
new Event(ev).preventDefault(); | |
}) | |
}) | |
var accordion = new Accordion('a.menuitem', 'ul.submenu', { | |
opacity: false, | |
onActive: function(toggler, element){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Packs | |
module Admin | |
class Grade < Grade | |
# Stub class extending from the real definition | |
end | |
end # Admin | |
end # Packs | |
NewerOlder