Ace js files in fabfile

master
Nick Sergeant 2012-02-26 18:38:26 -05:00
parent 0b67d804a2
commit c85afcbf19
3 changed files with 5 additions and 1 deletions

2
snipt/fabfile.py vendored
View File

@ -27,6 +27,8 @@ def staticfiles():
'%s/media/js/src/modules/*.js' % BASE_PATH,
'%s/media/js/libs/e_bootstrap.js' % BASE_PATH,
'%s/media/js/libs/ace/ace.js' % BASE_PATH,
'%s/media/js/libs/ace/theme-tomorrow.js' % BASE_PATH,
'%s/media/js/libs/ace/mode-javascript.js' % BASE_PATH,
]
local('cat %s > %s/media/cache/snipt.js' % (' '.join(js), BASE_PATH))
local('/Users/Nick/.virtualenvs/snipt/bin/python %s/manage.py collectstatic --ignore grappelli --ignore admin --ignore ace --noinput' % BASE_PATH)

File diff suppressed because one or more lines are too long

View File

@ -71,6 +71,7 @@
window.site.$body.addClass('detail editing');
window.site.$main_edit.html(editPane).show();
// TODO: Grab height of window and set to #editor first.
window.editor = ace.edit('editor');
window.editor.setTheme('ace/theme/tomorrow');
window.editor.renderer.setShowGutter(false);