Javascript x-可编辑停止键入时提交

Javascript x-可编辑停止键入时提交,javascript,x-editable,Javascript,X Editable,我正在尝试通过x-editable提交“停止键入”的上下文 我是这样做的: $('.editable').on('shown', function(e, editable) { $(editable.input.$input).keyup(_.debounce( function(){ <...Here should com the correct submit code...> $(editable.input.$input).editable

我正在尝试通过x-editable提交“停止键入”的上下文

我是这样做的:

  $('.editable').on('shown', function(e, editable) {
    $(editable.input.$input).keyup(_.debounce( function(){
      <...Here should com  the correct submit code...>
      $(editable.input.$input).editable('submit', editable.options);
    } , 1000));
  });
我收到这个例外:

Uncaught TypeError: Cannot read property 'options' of undefined
$.fn.editable   @   bootstrap-editable.js?body=1:2058
(anonymous function)    @   unobtrusive.js?body=1:225
later   @   underscore.js?body=1:846
有什么想法吗?我怎样才能提交? 理想情况下,我想提交使用的选项是由以前的可编辑调用分配

这是上一个电话:

$('.new_association_record').editable({
  ajaxOptions: {
    type: 'post',
    dataType: 'script'
  },

经过几个小时的痛苦,我检查了可编辑文件的来源。。。 不幸的是,文档不是最新的。为了使用“提交”消息,我们需要其他数据

因此,该代码运行良好:

editable.input.$input.closest('form').submit();

经过几个小时的痛苦,我检查了可编辑文件的来源。。。 不幸的是,文档不是最新的。为了使用“提交”消息,我们需要其他数据

因此,该代码运行良好:

editable.input.$input.closest('form').submit();