mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 21:01:27 -05:00
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
ace.define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){t.snippetText="snippet add\n ${1:obj}.add('${2:selector expression}')${3}\nsnippet addClass\n ${1:obj}.addClass('${2:class name}')${3}\nsnippet after\n ${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}\nsnippet ajax\n $.ajax({\n url: '${1:mydomain.com/url}',\n type: '${2:POST}',\n dataType: '${3:xml/html/script/json}',\n data: $.param( $('${4:Element or Expression}') ),\n complete: function (jqXHR, textStatus) {\n ${5:// callback}\n },\n success: function (data, textStatus, jqXHR) {\n ${6:// success callback}\n },\n error: function (jqXHR, textStatus, errorThrown) {\n ${7:// error callback}\n }\n });\nsnippet ajaxcomplete\n ${1:obj}.ajaxComplete(function (${1:e}, xhr, settings) {\n ${2:// callback}\n });\nsnippet ajaxerror\n ${1:obj}.ajaxError(function (${1:e}, xhr, settings, thrownError) {\n ${2:// error callback}\n });\n ${3}\nsnippet ajaxget\n $.get('${1:mydomain.com/url}',\n ${2:{ param1: value1 },}\n function (data, textStatus, jqXHR) {\n ${3:// success callback}\n }\n );\nsnippet ajaxpost\n $.post('${1:mydomain.com/url}',\n ${2:{ param1: value1 },}\n function (data, textStatus, jqXHR) {\n ${3:// success callback}\n }\n );\nsnippet ajaxprefilter\n $.ajaxPrefilter(function (${1:options}, ${2:originalOptions}, jqXHR) {\n ${3: // Modify options, control originalOptions, store jqXHR, etc}\n });\nsnippet ajaxsend\n ${1:obj}.ajaxSend(function (${1:request, settings}) {\n ${2:// error callback}\n });\n ${3}\nsnippet ajaxsetup\n $.ajaxSetup({\n url: \"${1:mydomain.com/url}\",\n type: \"${2:POST}\",\n dataType: \"${3:xml/html/script/json}\",\n data: $.param( $(\"${4:Element or Expression}\") ),\n complete: function (jqXHR, textStatus) {\n ${5:// callback}\n },\n success: function (data, textStatus, jqXHR) {\n ${6:// success callback}\n },\n error: function (jqXHR, textStatus, errorThrown) {\n ${7:// error callback}\n }\n });\nsnippet ajaxstart\n $.ajaxStart(function () {\n ${1:// handler for when an AJAX call is started and no other AJAX calls are in progress};\n });\n ${2}\nsnippet ajaxstop\n $.ajaxStop(function () {\n ${1:// handler for when all AJAX calls have been completed};\n });\n ${2}\nsnippet ajaxsuccess\n $.ajaxSuccess(function (${1:e}, xhr, settings) {\n ${2:// handler for when any AJAX call is successfully completed};\n });\n ${2}\nsnippet andself\n ${1:obj}.andSelf()${2}\nsnippet animate\n ${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}\nsnippet append\n ${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}\nsnippet appendTo\n ${1:obj}.appendTo('${2:selector expression}')${3}\nsnippet attr\n ${1:obj}.attr('${2:attribute}', '${3:value}')${4}\nsnippet attrm\n ${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}\nsnippet before\n ${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}\nsnippet bind\n ${1:obj}.bind('${2:event name}', function (${3:e}) {\n ${4:// event handler}\n });\nsnippet blur\n ${1:obj}.blur(function (${2:e}) {\n ${3:// event handler}\n });\nsnippet C\n $.Callbacks()${1}\nsnippet Cadd\n ${1:callbacks}.add(${2:callbacks})${3}\nsnippet Cdis\n ${1:callbacks}.disable()${2}\nsnippet Cempty\n ${1:callbacks}.empty()${2}\nsnippet Cfire\n ${1:callbacks}.fire(${2:args})${3}\nsnippet Cfired\n ${1:callbacks}.fired()${2}\nsnippet Cfirew\n ${1:callbacks}.fireWith(${2:this}, ${3:args})${4}\nsnippet Chas\n ${1:callbacks}.has(${2:callback})${3}\nsnippet Clock\n ${1:callbacks}.lock()${2}\nsnippet Clocked\n ${1:callbacks}.locked()${2}\nsnippet Crem\n ${1:callbacks}.remove(${2:callbacks})${3}\nsnippet change\n ${1:obj}.change(function (${2:e}) {\n ${3:// event handler}\n });\nsnippet children\n ${1:obj}.children('${2:selector expression}')${3}\nsnippet clearq\n ${1:obj}.clearQueue(${2:'queue name'})${3}\nsnippet click\n ${1:obj}.click(function (${2:e}) {\n ${3:// event handler}\n });\nsnippet clone\n ${1:obj}.clone()${2}\nsnippet contains\n $.contains(${1:container}, ${2:contents});\nsnippet css\n ${1:obj}.css('${2:attribute}',
|