aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 61c80702e..bf2dde8e9 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -114,10 +114,12 @@ tinyMCE.init({
$('.item-select').each( function() {
if($(this).is(':checked')) {
- if(checkedstr.length != 0)
+ if(checkedstr.length != 0) {
checkedstr = checkedstr + ',' + $(this).val();
- else
+ }
+ else {
checkedstr = $(this).val();
+ }
}
});
$.post('item', { dropitems: checkedstr }, function(data) {