0
我使用Drupal的6.26和jquery_update的jQuery 1.7 min.js 當我在我的自定義模塊錯誤:太多的遞歸調用的jQuery的Drupal
$drupal_add_css('sites/all/libraries/jqgrid/themes/redmond/jquery-ui-1.8.16.custom.css');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery.js');
drupal_add_js('sites/all/libraries/jqgrid/js/i18n/grid.locale-fa.js');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery.jqGrid.min.js');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery-ui-custom.min.js');
顯示這個錯誤 錯誤使用:太多的遞歸調用 源文件:網站/all/libraries/jqgrid/js/jquery-ui-custom.min.js?G 線:588
線:588
$f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,
另一個問題 我使用了jquery更新模塊。 的Drupal添加的jquery.js在 所有頁面,當我在我的模塊中使用它工作正常
$drupal_add_css('sites/all/libraries/jqgrid/themes/redmond/jquery-ui-1.8.16.custom.css');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery.js');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery.jqChart.min.js');
drupal_add_js('sites/all/libraries/jqgrid/js/jquery-ui-custom.min.js');
,但是當我刪除
$drupal_add_js('sites/all/libraries/jqgrid/js/jquery.js');
我的模塊沒工作
請指導我 謝謝
請檢查這個問題http://stackoverflow.com/questions/10692256/jqgrid-jquery-drupal-6 –