Bugfix
[infodrom.org/service.infodrom.org] / src / jquery.editable.js
index d091608..2ba6358 100644 (file)
                                 $el : $el
                             });
                         }
-                       else {
+                       else if (newText != defaultText) {
                            var route = $($el).attr('route');
                            var name = $($el).attr('name');
                            var item_id = $($el).attr('item_id');
                                $.invoke(route,
                                         {id: item_id,
                                          name: name,
-                                         content: newText == defaultText ? false : newText});
+                                         content: newText});
                        }
                     };
 
                             $el : $el
                         });
                     }
-                   else {
+                   else if (newText != defaultText) {
                        var route = $($el).attr('route');
                        var name = $($el).attr('name');
                        var item_id = $($el).attr('item_id');
                            $.invoke(route,
                                     {id: item_id,
                                      name: name,
-                                     content: newText == defaultText ? false : newText});
+                                     content: newText});
                    }
                 })
                 .attr('style', textareaStyle)