Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
tablesort fix
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lee Katz  
View profile  
 More options Nov 20 2010, 9:27 pm
From: Lee Katz <lsk...@gmail.com>
Date: Sat, 20 Nov 2010 18:27:39 -0800 (PST)
Local: Sat, Nov 20 2010 9:27 pm
Subject: tablesort fix
Hi, I just wanted to share a better way to initialize tablesort, and
hopefully it can make it into the next revision.  This code replaces
the last few lines that try to load tablesort either through FastInit
or through the class itself.  I haven't tested this much at all, so
there may be a better way to optimize it.

// Try.these tries a series of code blocks until a success.
// var sortableLoaded will be false if all code blocks fail.
var sortableLoaded=Try.these(
  function(){
    return FastInit.addOnLoad(SortableTable.load);
  },
  function(){
    return Event.observe(window, 'load', SortableTable.load);
  }
)||false;

// Throw an error if the class couldn't be loaded.
if(!sortableLoaded){
  throw new Error("Could not load the Sortable class. Tables will not
be sortable.");


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »