Pebble-Backup / cloudpebble

CloudPebble source. Here be dragons.
http://cloudpebble.net/
MIT License
1 stars 0 forks source link

Add URL slugs to the CloudPebble IDE JavaScript #27

Open tbe opened 7 years ago

tbe commented 7 years ago

Issue by AmandaCameron Wednesday Apr 23, 2014 at 19:51 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT Originally opened as https://github.com/pebble/cloudpebble/pull/73


This allows one to go to /ide/projects/:id#settings to get to their project's settings. This adds a new CloudPebble.Locations API that handles the storage of valid slugs and calls a function to activate the proper slugs on the onhashchange event. It also includes a function to set the current slug in the URL.

To fix a bug, the Sidebar was disavowed of it's responsibility of resource and source file switching by callback, instead stuffing a valid slug into the a element it generates.


AmandaCameron included the following code: https://github.com/pebble/cloudpebble/pull/73/commits

tbe commented 7 years ago

Comment by Katharine Wednesday May 07, 2014 at 08:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT


Please rebase on master.