Comparing version 1.6.8 to 1.6.9
@@ -318,2 +318,3 @@ 'use strict'; | ||
this.attrs['data-fp-apikey'] = process.env.FILEPICKER_API_KEY; | ||
this.attrs['data-fp-button-class'] = "btn btn-primary"; | ||
}, | ||
@@ -325,4 +326,4 @@ | ||
this._super(res); | ||
res.write(util.format('<a href="%s" target="_blank">%s</a>\n', raw_value.url || '#', raw_value.filename || '')); | ||
if (raw_value && raw_value.url) { | ||
res.write(util.format('<a href="%s" target="_blank">%s</a>\n', raw_value.url, raw_value.filename)); | ||
res.write(util.format('<input type="checkbox" name="%s_clear" value="false" /> Clear\n', this.name)); | ||
@@ -329,0 +330,0 @@ } |
{ | ||
"name": "formage", | ||
"description": "Admin GUI addon for mongoose and non mongoose projects on Express.js", | ||
"version": "1.6.8", | ||
"version": "1.6.9", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -77,3 +77,3 @@ 'use strict'; | ||
// Wire FilePicker widget. FieldBinding is done automagicly by type="filepicker" | ||
$('input[type=filepicker]').on('change', function (e) { | ||
$('input[type=filepicker]', ctx).on('change', function (e) { | ||
e.preventDefault(); | ||
@@ -80,0 +80,0 @@ //noinspection JSUnresolvedVariable |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1343932
28015