Merge branch 'master' of ssh://git.gamuza.fr:2222/snippet/snippets-vscodium
This commit is contained in:
commit
466f57ed23
1 changed files with 20 additions and 5 deletions
25
js.json
25
js.json
|
@ -1,5 +1,20 @@
|
|||
|
||||
snippet necessite "SPIP <necessite ...>"
|
||||
<necessite nom="${1}" compatibilite="[${2};[" />
|
||||
${0}
|
||||
endsnippet
|
||||
{
|
||||
"jq": {
|
||||
"prefix": "jq",
|
||||
"body": "jQuery(function() {\n\t`!v vim_snippets#Filename()`();\n\t//onAjaxLoad(`!v vim_snippets#Filename()`);\n\n\tfunction `!v vim_snippets#Filename()`(){\n\t\t${0}\n\t}\n});"
|
||||
},
|
||||
"con": {
|
||||
"prefix": "con",
|
||||
"body": "console.log(${1});"
|
||||
},
|
||||
"ajax_action": {
|
||||
"prefix": "ajax_action",
|
||||
"body": "data = {\n\n};\nvar request = jQuery.ajax({\n\turl: ${1},\n\tdata: data,\n\tasync: true,\n\tdataType: 'json',\n});\nrequest.done(function(){\n\t${0}\n\t// console.log(ma_variable_php_de_retour);\n});",
|
||||
"description": "req ajax jquery"
|
||||
},
|
||||
"ajax_reload": {
|
||||
"prefix": "ajax_reload",
|
||||
"body": "ajaxReload('${1}', {\n\targs:{\n\t\t${2}:$2,${0}\n\t},\n\tcallback: function(){}\n});",
|
||||
"description": "Reload ajax spip"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue