Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Prepare JavaScript for initial move to a CDN #1302

Merged
merged 13 commits into from
Sep 13, 2013
Merged

Prepare JavaScript for initial move to a CDN #1302

merged 13 commits into from
Sep 13, 2013

Conversation

chadwhitacre
Copy link
Contributor

This adds a GITTIP_JS_SRC envvar and folds all the js into a single gittip.js asset that dynamically concatenates all of the files in ./js.

This is unused.
We're going to minimize these pretty soon anyway, but in development
this will still be helpful prolly.
@chadwhitacre
Copy link
Contributor Author

This is ready for review.

$gift = $(this),
$parent = $gift.parent(),
$zero = $('<button>$0</button>'),
$quarter = $('<button>25¢</button>'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unicode ¢ was clogging up the cat simplate and that made me realize that this code is no longer used post-#1070.

Conflicts:
	templates/base.html
We used to have the community drop-down on both /for/ and the profile
page. We took it off the profile page in #1087. Now that we are
including the profile.js on every page, it was clobbering the drop-down
on /for/. I've moved the document.ready in profile.js (are there
others?) into an init function that's only fired on profile edit. I also
moved the rendering of the community listing on profiles server-side.
There was a typo, nother instead of nothers, that was doubly masked.
First, if you had a team then nothers was left over from that loop.
You'd expect the numbers for the communities to all be the number for
the last team in that case, but we still had the js that was setting the
numbers client-side, so if you had a team then everything looked fine.
It was only if you didn't have a team that you saw the nother NameError.
wyze added a commit that referenced this pull request Sep 13, 2013
Prepare JavaScript for initial move to a CDN
@wyze wyze merged commit be571fe into master Sep 13, 2013
@wyze wyze deleted the now-js branch September 13, 2013 05:48
@chadwhitacre chadwhitacre mentioned this pull request Sep 16, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants