fix #1102 add spinner to autocomplete and...

* get public/local variables correct for all js
* get i18n string in toggle_star for todos

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
Reinier Balt 2011-02-13 12:58:41 +01:00
parent e278e3d5ce
commit 24ef0ced32
10 changed files with 94 additions and 99 deletions

View file

@ -1,3 +1,5 @@
# TODO: is this DEAD code?
if @project.default_context.nil?
page.notify :notice, t('projects.default_context_removed'), 5.0
else

View file

@ -1,3 +1,4 @@
# TODO: is this dead code?
if @project.default_tags.nil?
page.notify :notice, t('projects.default_tags_removed_notice'), 5.0
else

View file

@ -1,3 +1,4 @@
#TODO: is this dead code?
page['default_project_name_id'].value = @project.name
page['todo_project_name'].value = @project.name

View file

@ -1,3 +1,4 @@
# TODO: is this dead code?
page.select('#project_status .active span').each do |element|
element.className = @project.current_state == :active ? 'active_state' : 'inactive_state'
end