Skip to content

Instantly share code, notes, and snippets.

View randallknutson's full-sized avatar

Randall Knutson randallknutson

View GitHub Profile
var request = require('request');
request(
{
url: 'https://{appname}.form.io/app/api/{resourcename}/submission/{submissionId}',
method: 'DELETE',
headers: {
'x-jwt-token': token
}
}
var request = require('request');
request(
{
url: 'https://{appname}.form.io/app/api/{resourcename}/submission/{submissionId}',
method: 'PUT',
headers: {
'x-jwt-token': token
},
form: {
var request = require('request');
request(
{
url: 'https://{appname}.form.io/app/api/{resourcename}',
method: 'POST',
headers: {
'x-jwt-token': token
},
form: {
var request = require('request');
request(
{
url: 'https://{appname}.form.io/app/api/{resourcename}/submission/{submissionId}',
headers: {
'x-jwt-token': token
}
}
function (error, response, body) {
@randallknutson
randallknutson / gist:bbe8dd3099234a73c716
Created July 17, 2015 15:03
User Authentication Example
var request = require('request');
request.post(
'https://{appname}.form.io/app/api/{userresource}/{loginform}/submission',
{
data: {
'{userresource}.{emailfield}': email,
'{userresource}.{passwordfield}': password
}
},
@randallknutson
randallknutson / gist:58da47fad0035de19a28
Created July 17, 2015 14:58
Authentication Example.
var request = require('request');
request.post(
'https://formio.form.io/app/api/user/login/submission',
{
data: {
'user.email': email,
'user.password': password
}
},
@randallknutson
randallknutson / gist:8897e141044e81b55dd7
Created February 19, 2015 14:47
Actionlab Jenkins Log
+ cd actionlab_app
+ npm install gulp
npm http GET https://registry.npmjs.org/gulp
npm http 200 https://registry.npmjs.org/gulp
npm http GET https://registry.npmjs.org/deprecated
npm http GET https://registry.npmjs.org/gulp-util
npm http GET https://registry.npmjs.org/interpret
npm http GET https://registry.npmjs.org/liftoff
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/orchestrator
@randallknutson
randallknutson / gist:f8704e482d64984bbaaa
Created February 19, 2015 14:46
Actionlab Local Build
$ npm install && bower install && bundle && ./node_modules/.bin/gulp build
[email protected] node_modules/rimraf
[email protected] node_modules/connect-modrewrite
└── [email protected]
[email protected] node_modules/front-matter
└── [email protected]
[email protected] node_modules/through2
diff --git a/includes/common.inc b/includes/common.inc
index 63b691e..e58560c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -4390,7 +4390,13 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS
// Aggregate any remaining JS files that haven't already been output.
if ($preprocess_js && count($files) > 0) {
foreach ($files as $key => $file_set) {
- $uri = drupal_build_js_cache($file_set);
+ // There is no way to override this in ajax.
diff --git a/hierarchical_select.module b/hierarchical_select.module
index 8ab36c9..a03f1ba 100644
--- a/hierarchical_select.module
+++ b/hierarchical_select.module
@@ -676,14 +676,14 @@ function _hs_process_render_nojs($element, $config) {
'#prefix' => '<div class="nojs">',
'#suffix' => '</div>',
);
- $element['nojs']['update_button'] = array(
- '#type' => 'submit',