File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import jQuery from 'jquery';
99import mixin from './mixin.js' ;
1010import Dinero from 'dinero.js' ;
1111import SparkForm from './forms/form.js' ;
12+ import http from './forms/http.js' ;
1213
1314/*
1415 * Load various JavaScript modules that assist Spark.
@@ -127,9 +128,18 @@ if ($('#spark-app').length > 0) {
127128 window . SparkForm = SparkForm ;
128129
129130 /**
130- * Load the Spark form utilities .
131+ * Initialize the Spark form extension points .
131132 */
132- import ( './forms/bootstrap.js' ) ;
133+ Spark . forms = {
134+ register : { } ,
135+ updateContactInformation : { } ,
136+ updateTeamMember : { }
137+ } ;
138+
139+ /**
140+ * Add additional HTTP / form helpers to the Spark object.
141+ */
142+ $ . extend ( Spark , http ) ;
133143}
134144
135145/**
You can’t perform that action at this time.
0 commit comments