Ace js files in fabfile
parent
0b67d804a2
commit
c85afcbf19
|
@ -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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue