Commit graph

55 commits

Author SHA1 Message Date
Eric Allen
9ab69adb38 Dynamically load autocompletes
This cuts something like 100ms off of page load times!

Closes #1011
2010-04-02 13:24:21 -04:00
Eric Allen
205c4e7ed4 Much smarter project note truncation
Fixes #780
2010-04-02 09:46:19 -04:00
Eric Allen
3c82b88720 Replace conditional with rescue's
Closes #1015, although this should really be taken care of by
finishing #1011.
2010-03-25 07:53:34 -04:00
Eric Allen
25f0f3dfd9 JavaScript working for subdir 2010-03-14 16:39:11 -04:00
Eric Allen
a0d12c95e9 No more bundle-fu
Using Rails 2's built-in bundling instead

I believe this closes #978
2010-03-14 16:18:13 -04:00
Eric Allen
3f14a7a8bb Respect user's week start preference
Fixes #1005
2010-03-04 16:42:23 -05:00
Eric Allen
66e9c42033 Smart auto-refresh logic
No longer destroys ongoing edits

Fixes #907
2010-01-17 11:07:21 -08:00
Erik Ordway
07dd842525 remove debuging message 2010-01-12 17:18:11 -08:00
Erik Ordway
5b431ef50a This allows CAS to work side by side with other Auth methods.
This is at least one issue with this

to logout of CAS you need session information but the logout method blows this away so I do the cas log out before the session is killed so the session persistest in rails.  Because I needed to move the CAS before filters into login_cas and out of the application to make it work side by side.   The user will still be logined into tracks even though their CAS session is closed as the session will still be there.

 def logout
    @user.forget_me if logged_in?
    cookies.delete :auth_token
    session['user_id'] = nil
    if ( SITE_CONFIG['authentication_schemes'].include? 'cas')  && session[:cas_user]
      CASClient::Frameworks::Rails::Filter.logout(self)
    else
      reset_session
      notify :notice, "You have been logged out of Tracks."
      redirect_to_login
    end
  end

The other issue I have with this is that:
I could not find a use case for having mixed auth when using CAS. The reason to move to CAS is that all your users use CAS all the time. Even for admin accounts. Moodle is a good example of this in that when you activate CAS the default is that you can now only access moodle via CAS. By allowing mixed auth and self signup you end up with a anyone (the public) being able to sign up for accounts.
2010-01-12 17:17:56 -08:00
Eric Allen
b3a77270da Get rid of calls to formatted_ helpers
Rails deprecated them to save on memory
2009-12-07 19:11:30 -05:00
Michaël Witrant
686bc5a7c4 added missing ending tags 2009-11-24 19:06:14 +08:00
Eric Allen
686086dcdf Initial attempt to resolve dateFormat issue
Translating from strftime format to jQuery UI's format on the fly on every
page render. That kind of sucks, but it works. I think I have enough
translations here to cover everybody, but possibly not.
2009-10-30 15:37:40 -04:00
Eric Allen
bb0b602b6c Minor refactoring to fix login 2009-10-18 18:23:33 -04:00
Eric Allen
67e88acacc Cleaning up Prototype remnants and refactoring
Moved some stuff, like Nifty Corners, into application.js to speed things up.
2009-10-16 23:52:52 -04:00
Eric Allen
01e4cdb178 Tag autocomplete 2009-10-16 19:23:11 -04:00
Eric Allen
d0e6ebd41e Only setup autocomplete if available 2009-10-02 18:35:25 -04:00
Eric Allen
195a58174b auto-fill of default tags & contexts from project 2009-10-02 18:31:53 -04:00
Eric Allen
8f21467b63 Basic autocomplete for projects and contexts 2009-10-01 22:32:12 -04:00
Eric Allen
83b17d2231 Edit-in-place for context name 2009-09-27 22:38:21 -04:00
Eric Allen
a09b55d6b6 New todo form working with Ajax 2009-09-21 22:59:46 -04:00
Eric Allen
59b367a711 Todo editing and deletion working beautifully.
Removing UJS caused the home page to stop rendering due to references to
apply_behavior. I had to take care of that before I could proceed at all.

Some Autocomplete stuff has been yanked out and needs to go back in at some point.

Had to replace Protoload with jQuery.blockUI. It's a bit bigger, but oh well.
2009-09-07 16:58:26 -04:00
Eric Allen
07b1dec5f3 Fade flashes in using jQuery 2009-09-06 20:06:55 -04:00
Eric Allen
ce979063c5 Replaced old calendar picker with jQuery UI. 2009-09-06 20:00:19 -04:00
Eric Allen
6b7e5d0eed Re-wrote todo-items.js and got todo uncheck working.
I also discovered that application.js was getting included twice, causing a few issues. Small fix in standard.html.erb took care of it.
2009-09-06 19:41:27 -04:00
Eric Allen
f9e6540ed2 Star toggling and todo checking working
Todo unchecking is still buggy, but needs a bunch more work to make it happen.

Also added some useful globals to the standard layout for later access by application.js.
2009-09-05 15:24:03 -04:00
Eric Allen
4c68144c93 Login form working in jQuery 2009-09-05 15:23:57 -04:00
Eric Allen
fac5e7ca83 No more CookieManager since it's dependent on Prototype 2009-09-05 15:23:33 -04:00
Eric Allen
e57e1445b4 Getting rid of last traces of Prototype and old jQuery library. 2009-09-02 10:33:34 -04:00
Reinier Balt
0272f812da Add the ability to integrate your tracks installation as a Gmail Gadget. Code was contributed by GTDify.com. Thanks!
see http://www.getontracks.org/forums/viewthread/434/
2009-08-04 09:54:45 +02:00
Reinier Balt
49e2ee69b8 move loading off js after css. inspired by http://code.google.com/speed/page-speed/ 2009-06-10 16:20:57 +02:00
Reinier Balt
dd5b479c5d fix #584 where the date at the top did not use the users timezone, but the servers timezone
also remove confusing user_time helper
2009-04-07 21:34:15 +02:00
Reinier Balt
480af3a2ab make sure that new/updated todos also get the behavior enabled for toggling notes 2009-03-31 09:56:23 +02:00
Reinier Balt
33e96dd42e move js of template to the bottom of the page and migrate toggle js to jquery
yslow states that loading of page is faster when js is at the bottom
2009-03-30 23:01:17 +02:00
Reinier Balt
8612c1a677 tidy up the templates and the js in them 2009-03-27 17:03:18 +01:00
Reinier Balt
dfffbc78c3 further enhance the context menu and fix showing of context menu on ie 2009-03-24 16:14:35 +01:00
Reinier Balt
3a8ce12fe8 further integrate contact menu and add visual feedback of ajax actions 2009-03-24 16:14:33 +01:00
Reinier Balt
5b31d4cf84 change name of menu item for managing users 2009-03-24 16:14:32 +01:00
Reinier Balt
06c4ea8a8c first pass at adding context menu for todos 2009-03-24 16:14:31 +01:00
Reinier Balt
cda5e9d2f8 add drop down menus to tracks 2009-03-24 16:14:28 +01:00
Hans de Graaff
307e85287c OpenSearch support.
This implements #804.
2008-12-10 21:34:36 +01:00
Reinier Balt
4dcb370389 applied the patches from Jakub to improve the mobile html
Thanks Jakub
2008-12-04 16:52:17 +01:00
Luke Melia
35ae5fc431 Next step in upgrading Tracks to Rails 2.2. Some highlights:
* Ran rake rails:update
* Added old actionwebservice framework
* Updated RSpec and RSpec-Rails
* Removed asset_packager plugin (not compatible, Scott no longer maintaining), and replaced with bundle_fu. See the bundle_fu README for more info.
* Hacks to UJS and ARTS plugins, which are no longer supported. Probably should move off both UJS and RJS.
* Hack to flashobject_helper plugin (upgrade to Rails 2.2-compatible version if/when it comes out.)
* Hack to skinny-spec plugin, for Rails 2.2 compatibility. Should check for official release.
* Hacks to resource_feeder plugin, for Rails 2.2 compatibility. Should check for official release (not likely) or move off it.
* Addressed some deprecation warnings. More to come.
* My mobile mime type hackery is no longer necessary with new Rails features. Yay!
* Updated environment.rb.tmpl with changes

TODO:
* Restore view specs marked pending
* Fix failing integration tests.
* Try selenium tests.
* Investigate OpenID support.
* Address deprecation warnings.
* Consider moving parts of environment.rb to initializers
* Address annoying config.gem warning about highline gem
2008-11-30 00:34:15 -05:00
Reinier Balt
541d6f5b69 add calendar to menu and implement ical
tested ical with outlook 2007
2008-10-03 22:44:58 +02:00
Reinier Balt
1d64ca0f34 move nifty js calls to respective pages to reduce js execution a bit (on every page) 2008-09-05 18:01:22 +02:00
Reinier Balt
223cf93597 fix #755. Restores accesskey for toggling new todo form
Thanks marqpdx for finding this fix!

On my windows vista laptop with ff3 alt-shift-p will still start Windows Media Player, but the other accesskeys now seem to work for me
2008-08-18 20:26:28 +02:00
Reinier Balt
db86df5497 fixes for mobile view and for recurring todos
* fixed redirect to last page instead of /mobile after adding a new todo using mobile interface
* fixed adding new todo to tickler instead of home after marking a todo belonging an active recurring todo complete
2008-08-04 16:13:51 +02:00
Reinier Balt
87b383f209 restored keypad navigation in mobile view.
Parts of [832] were lost in the rails2 merge last april
2008-07-31 21:02:37 +02:00
Reinier Balt
8bc41e2cb0 add recurring todos to tracks 2008-07-19 20:27:45 +02:00
bsag
c1109b3fb3 Merge branch 'svn-tracking'
Up to r881 of svn repository
* svn-tracking: (22 commits)
  Added .gitconfig
  Added yaml_db plugin: http://opensource.heroku.com/
  applied patch from Eric from #732
  fixes #730 restores ability to delete user from user management page
  fixes #724 where editing todos truncates the project name of the todo when the project name contains quotes (")
  Applied patch from Eric Pallen whcih automatically converts url's to links. Thanks Eric!
  explain that yaml cannot yet be used for backup as importing is not implemented yet. from mailinglist.
  hopefully fixes #727.Changes the check on running animation to finished animation
  regenerate compressed js and cleanup whitespace
  turns out that getElementsByClassName is removed from prototype and it therfore falls back to the function of the browser which has different semantics. Found here http://www.prototypejs.org/api/utility/getElementsByClassName
  forgot to create a new compressed js from the previous js changes
  in the stats page you can downdrill to see the active todos in a certain week from the running time charts. This patch adds the option to see all active todos from the selected week and older.
  fix #727. Adds a check to prevent expand/collapse while a previous expand/collaps is still animating
  fixed small problem where updating a todo from mobile resulted in an error becase source_view was nil
  fixes #726. Thanks Eric Pallen for the fix. The mobile view showed active todos from completed projects while the home page does not.
  merges changes from tracks1.6 to trunk
  prepares trunk for 1.6 release
  fixes #713. Adds behavior for edit/star/delete/check buttons of todo even if there is no todo to show. This makes sure that the behaviors are present when you add a new todo through AJAX.
  fixes #718. The link included the number of actions which resulted from last commit
  removed some more whitespace to reduce the download of the mobile view.
  ...
2008-06-15 09:59:22 +01:00
bsag
0380d1b15a Merge branch 'master' of /Users/jackie/Sites/tracks_svn into svn-tracking
Up to r881

* 'master' of /Users/jackie/Sites/tracks_svn: (22 commits)
  Added .gitconfig
  Added yaml_db plugin: http://opensource.heroku.com/
  applied patch from Eric from #732
  fixes #730 restores ability to delete user from user management page
  fixes #724 where editing todos truncates the project name of the todo when the project name contains quotes (")
  Applied patch from Eric Pallen whcih automatically converts url's to links. Thanks Eric!
  explain that yaml cannot yet be used for backup as importing is not implemented yet. from mailinglist.
  hopefully fixes #727.Changes the check on running animation to finished animation
  regenerate compressed js and cleanup whitespace
  turns out that getElementsByClassName is removed from prototype and it therfore falls back to the function of the browser which has different semantics. Found here http://www.prototypejs.org/api/utility/getElementsByClassName
  forgot to create a new compressed js from the previous js changes
  in the stats page you can downdrill to see the active todos in a certain week from the running time charts. This patch adds the option to see all active todos from the selected week and older.
  fix #727. Adds a check to prevent expand/collapse while a previous expand/collaps is still animating
  fixed small problem where updating a todo from mobile resulted in an error becase source_view was nil
  fixes #726. Thanks Eric Pallen for the fix. The mobile view showed active todos from completed projects while the home page does not.
  merges changes from tracks1.6 to trunk
  prepares trunk for 1.6 release
  fixes #713. Adds behavior for edit/star/delete/check buttons of todo even if there is no todo to show. This makes sure that the behaviors are present when you add a new todo through AJAX.
  fixes #718. The link included the number of actions which resulted from last commit
  removed some more whitespace to reduce the download of the mobile view.
  ...
2008-06-15 09:50:05 +01:00