From 963a8780742367ab98147b42a1b679c0c0d810d4 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sun, 18 Nov 2007 09:07:21 +0000 Subject: [PATCH] Rebuilt CSS and JS packages. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@647 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/public/javascripts/{tracks_589.js => tracks_644.js} | 7 ++++--- .../public/stylesheets/{tracks_638.css => tracks_646.css} | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename tracks/public/javascripts/{tracks_589.js => tracks_644.js} (99%) rename tracks/public/stylesheets/{tracks_638.css => tracks_646.css} (99%) diff --git a/tracks/public/javascripts/tracks_589.js b/tracks/public/javascripts/tracks_644.js similarity index 99% rename from tracks/public/javascripts/tracks_589.js rename to tracks/public/javascripts/tracks_644.js index 640b9050..15ea7d69 100644 --- a/tracks/public/javascripts/tracks_589.js +++ b/tracks/public/javascripts/tracks_644.js @@ -366,6 +366,9 @@ if(this.saving)return;this.effect=new Effect.Highlight(this.element,{startcolor: this.editing=false;this.saving=false;this.oldInnerHTML=null;this.onLeaveEditMode();},onComplete:function(transport){this.leaveEditMode();this.options.onComplete.bind(this)(transport,this.element);},onEnterEditMode:function(){},onLeaveEditMode:function(){},dispose:function(){if(this.oldInnerHTML){this.element.innerHTML=this.oldInnerHTML;} this.leaveEditMode();Event.stopObserving(this.element,'click',this.onclickListener);Event.stopObserving(this.element,'mouseover',this.mouseoverListener);Event.stopObserving(this.element,'mouseout',this.mouseoutListener);if(this.options.externalControl){Event.stopObserving(this.options.externalControl,'click',this.onclickListener);Event.stopObserving(this.options.externalControl,'mouseover',this.mouseoverListener);Event.stopObserving(this.options.externalControl,'mouseout',this.mouseoutListener);}}};Ajax.InPlaceCollectionEditor=Class.create();Object.extend(Ajax.InPlaceCollectionEditor.prototype,Ajax.InPlaceEditor.prototype);Object.extend(Ajax.InPlaceCollectionEditor.prototype,{createEditField:function(){if(!this.cached_selectTag){var selectTag=document.createElement("select");var collection=this.options.collection||[];var optionTag;collection.each(function(e,i){optionTag=document.createElement("option");optionTag.value=(e instanceof Array)?e[0]:e;if((typeof this.options.value=='undefined')&&((e instanceof Array)?this.element.innerHTML==e[1]:e==optionTag.value))optionTag.selected=true;if(this.options.value==optionTag.value)optionTag.selected=true;optionTag.appendChild(document.createTextNode((e instanceof Array)?e[1]:e));selectTag.appendChild(optionTag);}.bind(this));this.cached_selectTag=selectTag;} this.editField=this.cached_selectTag;if(this.options.loadTextURL)this.loadExternalText();this.form.appendChild(this.editField);this.options.callback=function(form,value){return"value="+encodeURIComponent(value);}}});Form.Element.DelayedObserver=Class.create();Form.Element.DelayedObserver.prototype={initialize:function(element,delay,callback){this.delay=delay||0.5;this.element=$(element);this.callback=callback;this.timer=null;this.lastValue=$F(this.element);Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));},delayedListener:function(event){if(this.lastValue==$F(this.element))return;if(this.timer)clearTimeout(this.timer);this.timer=setTimeout(this.onTimerEvent.bind(this),this.delay*1000);this.lastValue=$F(this.element);},onTimerEvent:function(){this.timer=null;this.callback(this.element,$F(this.element));}};var Login={showOpenid:function(){if($('database_auth_form'))$('database_auth_form').hide();if($('openid_auth_form'))$('openid_auth_form').show();if($('alternate_auth_openid'))$('alternate_auth_openid').hide();if($('alternate_auth_database'))$('alternate_auth_database').show();if($('openid_url'))$('openid_url').focus();if($('openid_url'))$('openid_url').select();new CookieManager().setCookie('preferred_auth','openid');},showDatabase:function(container){if($('openid_auth_form'))$('openid_auth_form').hide();if($('database_auth_form'))$('database_auth_form').show();if($('alternate_auth_database'))$('alternate_auth_database').hide();if($('alternate_auth_openid'))$('alternate_auth_openid').show();if($('user_login'))$('user_login').focus();if($('user_login'))$('user_login').select();new CookieManager().setCookie('preferred_auth','database');}} +var TracksForm={toggle:function(toggleDivId,formContainerId,formId,hideLinkText,hideLinkTitle,showLinkText,showLinkTitle){$(formContainerId).toggle();toggleDiv=$(toggleDivId);toggleLink=toggleDiv.down('a');if(toggleDiv.hasClassName('hide_form')){toggleLink.update(showLinkText).setAttribute('title',showLinkTitle);} +else{toggleLink.update(hideLinkText).setAttribute('title',hideLinkTitle);Form.focusFirstElement(formId);} +toggleDiv.toggleClassName('hide_form');}} Ajax.Responders.register({onCreate:function(){if($('busy')&&Ajax.activeRequestCount>0) Effect.Appear('busy',{duration:0.5,queue:'end'});},onComplete:function(){if($('busy')&&Ajax.activeRequestCount==0) Element.hide('busy');}});Event.observe(window,'load',function(){$A(document.getElementsByClassName('alert')).each(function(o){o.opacity=100.0 @@ -662,9 +665,7 @@ toggleElem.setAttribute('title','Collapse');imgElem=this.findToggleImgElem(toggl {if(Element.hasClassName(parentElem,parentClassName)) {return parentElem;} parentElem=parentElem.parentNode;} -return null;},showNewActionForm:function() -{Element.show('todo_new_action');Element.hide('show_todo_new_action');$('show_todo_new_action').down('a').accessKey='';$('hide_todo_new_action').down('a').accessKey='n';Element.show('hide_todo_new_action');Form.focusFirstElement('todo-form-new-action');},hideNewActionForm:function() -{Element.hide('todo_new_action');Element.hide('hide_todo_new_action');$('hide_todo_new_action').down('a').accessKey='';$('show_todo_new_action').down('a').accessKey='n';Element.show('show_todo_new_action');}} +return null;}} todoItems=new ToDoItems();Event.observe(window,"load",todoItems.addNextActionListingToggles.bindAsEventListener(todoItems));var niftyOk=(document.getElementById&&document.createElement&&Array.prototype.push);String.prototype.find=function(what){return(this.indexOf(what)>=0?true:false);} var oldonload=window.onload;if(typeof(NiftyLoad)!='function')NiftyLoad=function(){};if(typeof(oldonload)=='function') window.onload=function(){oldonload();NiftyLoad()};else window.onload=function(){NiftyLoad()};function Nifty(selector,options){if(niftyOk==false)return;var i,v=selector.split(","),h=0;if(options==null)options="";if(options.find("fixed-height")) diff --git a/tracks/public/stylesheets/tracks_638.css b/tracks/public/stylesheets/tracks_646.css similarity index 99% rename from tracks/public/stylesheets/tracks_638.css rename to tracks/public/stylesheets/tracks_646.css index 1676c7b4..8fcae33c 100644 --- a/tracks/public/stylesheets/tracks_638.css +++ b/tracks/public/stylesheets/tracks_646.css @@ -140,7 +140,7 @@ input#go_to_project, input#context_hide {width: 5%} .edit_todo_form .due_input, .edit_todo_form .show_from_input, .edit_todo_form .project_input, .edit_todo_form .context_input {width:48%} .edit_todo_form .show_from_input, .edit_todo_form .context_input {float: right} .edit_todo_form .submit_box input {width:120px} -#hide_todo_new_action {text-align:right} +.hide_form {text-align:right} #todo-form-new-action label, .edit_todo_form label {display: block; padding-bottom: 3px} form.button-to {border: none; padding: 0px; margin: 0px} label {font-weight: bold; padding: 0px 0px}