Skip to content

Commit

Permalink
b0rk b0rk b0rk: AFAICT there never was a assets/js/main.js while foot…
Browse files Browse the repository at this point in the history
….php requires it (you get a KISSCMS autogenerated 404 page instead): JS onload crashed on the missing init() function. This - admittedly very hacky fix - fixes that problem.

TODO: provide suitable '404' pages for missing JS files (and possibly others): anything that's not supposed to be HTML should get a real 404 instead of a substitute page.
  • Loading branch information
GerHobbelt committed Mar 27, 2013
1 parent 17e58d7 commit f7233da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions html/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* Author:
*/

function init() {
console.log("Just a quick hack to make KISSCMS *NOT* b0rk in the JavaScript init phase...");
}

1 comment on commit f7233da

@tracend
Copy link

Choose a reason for hiding this comment

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

RE: b0rk b0rk b0rk: AFAICT there never was a assets/js/main.js while foot…

Thanks - indeed this is a requirement at the moment.

This issue may be addressed as part of makesites#88

Please sign in to comment.