fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't ask on unload unless document is dirty
[fnpeditor.git]
/
src
/
editor
/
views
/
dialog
/
dialog.js
diff --git
a/src/editor/views/dialog/dialog.js
b/src/editor/views/dialog/dialog.js
index
7d9f775
..
0e45dd7
100644
(file)
--- a/
src/editor/views/dialog/dialog.js
+++ b/
src/editor/views/dialog/dialog.js
@@
-70,7
+70,10
@@
define(function(require) {
(this.options.fields || []).forEach(function(field) {
var widget = view.$('[name=' + field.name +']');
(this.options.fields || []).forEach(function(field) {
var widget = view.$('[name=' + field.name +']');
- formData[field.name] = widget.val();
+ var widget_type = widget.attr('type');
+ if (!(widget_type == 'checkbox' || widget_type == 'radio') || widget.is(':checked')) {
+ formData[field.name] = widget.val();
+ }
});
this.trigger('execute', {
});
this.trigger('execute', {