mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
Rebuilt CSS and JS packages.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@647 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
77cb38d420
commit
963a878074
2 changed files with 5 additions and 4 deletions
|
|
@ -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"))
|
||||
|
|
@ -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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue