FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptButtons/src/form.js at master · smallclaimslawsuits/JavaScriptButtons · GitHub
smallclaimslawsuits
/
JavaScriptButtons
Public
forked from
jbillimoria/JavaScriptButtons
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScriptButtons
/
src
/
form.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (18 loc) · 616 Bytes
Breadcrumbs
JavaScriptButtons
/
src
/
form.js
Copy path
File metadata and controls
28 lines (18 loc) · 616 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict'
;
var
constants
=
require
(
'./constants'
)
,
template
=
require
(
'./util/template'
)
,
button
=
require
(
'./button'
)
;
module
.
exports
=
function
form
(
type
,
data
,
config
)
{
var
model
,
btn
,
url
,
locale
;
btn
=
button
(
type
,
data
,
config
)
;
locale
=
data
.
get
(
'lc'
)
||
constants
.
DEFAULT_LOCALE
;
url
=
constants
.
PAYPAL_URL
;
url
=
url
.
replace
(
'{host}'
,
config
.
host
||
constants
.
DEFAULT_HOST
)
;
model
=
{
data
:
data
.
items
,
button
:
btn
,
url
:
url
,
content
:
constants
.
STRINGS
[
locale
]
}
;
return
template
(
constants
.
TEMPLATES
.
form
,
model
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL