Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
submission report
Commit Description:
submission report
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
$ ->
$ ( "#live_submit" ). on "click" , (event) ->
h = $ ( "#editor_text" )
e = ace . edit ( "editor" )
h . val ( e . getValue ())
$ ( "#language_id" ). on "change" , (event) ->
text = $ ( "#language_id option:selected" ). text ()
mode = 'ace/mode/c_cpp'
switch text
when 'Pascal' then mode = 'ace/mode/pascal'
when 'C++' , 'C' then mode = 'ace/mode/c_cpp'
when 'Ruby' then mode = 'ace/mode/ruby'
when 'Python' then mode = 'ace/mode/python'
when 'Java' then mode = 'ace/mode/java'
editor = ace . edit ( 'editor' )
editor . getSession (). setMode ( mode )
e = ace . edit ( "editor" )
e . setValue ( $ ( "#text_haha" ). val ())
e . gotoLine ( 1 )
$ ( "#language_id" ). trigger ( 'change' )
return
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings