From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Some Javascript Adventures Date: Fri, 15 May 2009 13:17:11 +0200 Message-ID: <87iqk2ipjc.fsf@kassiopeya.MSHEIMNETZ> References: <4A0960BE.2050005@manor-farm.org> <87my9ixvte.fsf@kassiopeya.MSHEIMNETZ> <87ab5hqf4p.fsf@kassiopeya.MSHEIMNETZ> <4A0C0B17.9060802@manor-farm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4vMB-0003NP-7c for emacs-orgmode@gnu.org; Fri, 15 May 2009 07:13:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4vM4-0003MQ-S4 for emacs-orgmode@gnu.org; Fri, 15 May 2009 07:13:38 -0400 Received: from [199.232.76.173] (port=42837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4vM3-0003MK-Bf for emacs-orgmode@gnu.org; Fri, 15 May 2009 07:13:32 -0400 Received: from mail.gmx.net ([213.165.64.20]:47418) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M4vM2-0002cN-Qg for emacs-orgmode@gnu.org; Fri, 15 May 2009 07:13:31 -0400 In-Reply-To: <4A0C0B17.9060802@manor-farm.org> (Ian Barton's message of "Thu, 14 May 2009 13:14:15 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: lists@manor-farm.org Cc: emacs-orgmode@gnu.org Applied. Learning english never ends... :) Sebastian Ian Barton writes: >> Unfortunately, it's tricky to get jQuery to work in Opera together with >> org-info.js (org-info.js works, jQuery doesn't :) ). >> Even in Firefox, if you place the jQuery stuff below the org-info.js >> stuff, it stops working. >> >> We should realy create a jQuery version of org-info.js... >> >> > Thanks for the tip about the sitemap. Ihad wondered about trying to create a > jQuery version, but I need to do a lot more learning first! > > Attached is a patch that fixes a mis-spelling in org-info.js. > > Ian. > > > diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js > index fe73ef1..2e1d4bb 100644 > --- a/code/org-info-js/org-info-src.js > +++ b/code/org-info-js/org-info-src.js > @@ -71,7 +71,7 @@ function OrgNode ( _div, _heading, _link, _depth, _parent, _base_id) > this.link = _link; > this.hasHighlight = false; // Node highlighted (search) > this.parent = _parent; > - this.durty = false; // Node is durty, when children get > + this.dirty = false; // Node is dirty, when children get > // folded seperatly. > this.state = OrgNode.STATE_FOLDED; > this.depth = _depth; // The Rootelement will have > @@ -250,7 +250,7 @@ OrgNode.prototype.hideAllChildren = function () > > /** > * This one is called onclick() to toggle the folding state of the node. > - * This one sets it's parent durty, since node is folded individually. Hence the > + * This one sets it's parent dirty, since node is folded individually. Hence the > * next folding of parent has to collapse all. > * @param show_childrens_folders Boolean. This is only used for the special way > * of toggling of the ROOT element. If true, prevents this OrgNode from showing > @@ -259,9 +259,9 @@ OrgNode.prototype.hideAllChildren = function () > OrgNode.prototype.fold = function (hide_folder) > { > if(this.parent) > - this.parent.durty = true; > - if(this.durty) { > - this.durty = false; > + this.parent.dirty = true; > + if(this.dirty) { > + this.dirty = false; > this.state = OrgNode.STATE_UNFOLDED; // so next state is FOLDED. See below. > } > > @@ -1200,7 +1200,7 @@ var org_html_manager = { > > toggleGlobaly: function () > { > - if(this.ROOT.durty) { > + if(this.ROOT.dirty) { > this.ROOT.state = OrgNode.STATE_UNFOLDED; > } > > @@ -1224,8 +1224,8 @@ var org_html_manager = { > this.ROOT.state = OrgNode.STATE_UNFOLDED; > } > > - // All this sets ROOT durty again. So clean it: > - this.ROOT.durty = false; > + // All this sets ROOT dirty again. So clean it: > + this.ROOT.dirty = false; > }, > > > @@ -1793,7 +1793,7 @@ var org_html_manager = { > > this.hideConsole(); > if(this.PLAIN_VIEW != this.VIEW) this.plainView(); > - this.ROOT.durty = true; > + this.ROOT.dirty = true; > this.toggleGlobaly(); > for(var i = 0; i < this.SECS.length; ++i) { > OrgNode.showElement(this.SECS[i].div);