x-editable jQuery-UI抛出" Uncaught TypeError:undefined不是函数"

时间:2015-01-14 06:10:51

标签: jquery

我正在使用X-editable jQuery-ui版本(x-editable)。我已经在文档中提到了CSS和JS(在jQuery-ui之后)。

代码

%a{ "href" => "javascript:void(0)", "id" => "some_id" }
  = "superuser"

:javascript
  jQuery(document).ready(function() {
    jQuery("#some_id").editable({
        type: 'text',
        pk: 1,
        url: '/some_URL',
        title: 'Enter username'
    });
  });

在视图中

当我点击超级用户链接时,它会在控制台中抛出以下错误

错误详情(在widget.js内)

this.options = $.widget.extend( {},

------> Uncaught TypeError: undefined is not a function <------

this.options,
this._getCreateOptions(),
options );

0 个答案:

没有答案