From: Victor S. <fou...@gm...> - 2006-10-26 08:11:43
|
Rattled off a quicky user request for 'Most Actively Reviewed", as seen here: http://ccmixter.org/media/reviews ajax prep: I've created a cctemplates/js directory and moved the new js files there. I won't move cc_obj.js there until I'm sure it won't break backward compat. I've also added a parameter to CCPage::AddScriptLink() to allow for script links to go at the bottom of the page (apparently this is where all the ajax stuff happens) Also: home_url and root_url js globals are available on all pages Added a javascript variable: q -- if you have pretty urls on this is '?' otherwise '&' -- now you can safely build urls in js if you need to add url query values to home_url: var url = home_url + '/reviews' + q + 'foo=bar&fee=baz'; ------------------------ Files --------------------------- 2006-10-26 Victor Stone <fou...@us...> * ccextras/cc-reviews.php 4499: * ccextras/cc-topics.js 4499: * ccextras/cc-topics.php 4499: * ccfiles/channels.xml 4499: * cclib/cc-page.php 4499: * cctemplates/access.js 4499: * cctemplates/access.xml 4499: * cctemplates/access.js:4497) 4499: * ccextras/cc-topics.js:4483) 4499: * cctemplates/prototype.js:4483) 4499: * cctemplates/radio.js:4483) 4499: * cctemplates/page.xml 4499: * cctemplates/prototype.js 4499: * cctemplates/radio.js 4499: * cctemplates/skin-simple-topics.css 4499: * cctemplates/topics.xml 4499: * cctemplates/upload_misc.xml 4499: dev: created js dir and started moving javascripts there dev: made home/root_url and 'q' available to all pages feature: most active reviews * cctemplates/skin-simple-topics.css 4500: * cctemplates/topics.xml 4500: typo and font tweak |