From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Some Javascript Adventures Date: Thu, 14 May 2009 13:14:15 +0100 Message-ID: <4A0C0B17.9060802@manor-farm.org> References: <4A0960BE.2050005@manor-farm.org> <87my9ixvte.fsf@kassiopeya.MSHEIMNETZ> <87ab5hqf4p.fsf@kassiopeya.MSHEIMNETZ> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000206070202080203090303" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4ZpP-0005Ko-5i for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:14:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4ZpO-0005Kc-HC for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:14:22 -0400 Received: from [199.232.76.173] (port=57818 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4ZpO-0005KZ-E3 for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:14:22 -0400 Received: from li40-130.members.linode.com ([72.14.178.130]:58325) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4ZpN-0004D9-VN for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:14:22 -0400 In-Reply-To: <87ab5hqf4p.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------000206070202080203090303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > 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. --------------000206070202080203090303 Content-Type: text/x-patch; name="org-info-src.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="org-info-src.diff" 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); --------------000206070202080203090303 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --------------000206070202080203090303--