Permalink
Browse files

(Fixes issue 1735)

  • Loading branch information...
qiang.xue
qiang.xue committed Nov 7, 2010
1 parent c1dc18f commit c9956ed73805ff4b8b4edd3718648ff94922db86
View
@@ -22,6 +22,7 @@ Version 1.1.5 to be released
- Bug #1718: Fixed the bug that Gii may fail if the error handler or user component is customized in the main application (Qiang)
- Bug #1719: Fixed the bug that CActiveForm->focus was not working if enableAjaxValidation was set to false (mdomba)
- Bug #1730: Fixed the bug that CDbConnection may attempt to use "SET NAMES" to set charset for Oracle DB (Qiang)
+- Bug #1735: Fixed the bug that CGridView and CListView may fail to work in AJAX mode if setting pagerCssClass with multiple classes (Qiang)
- Bug: Fixed the bug that some HTTP requests may cause a PHP notice complaining HTTP_HOST undefined in CHttpRequest (Qiang)
- Enh #970: Added CController::beforeRender() and CController::afterRender() (Qiang)
- Enh #1081: Refactored application global state management to allow loading and saving states explicitly for long-run tasks (Qiang)
@@ -28,7 +28,7 @@
var $this = $(this);
var id = $this.attr('id');
if(settings.updateSelector == undefined) {
- settings.updateSelector = '#'+id+' .'+settings.pagerClass+' a, #'+id+' .'+settings.tableClass+' thead th a';
+ settings.updateSelector = '#'+id+' .'+settings.pagerClass.replace(/\s+/,'.')+' a, #'+id+' .'+settings.tableClass.replace(/\s+/,'.')+' thead th a';
}
$.fn.yiiGridView.settings[id] = settings;
@@ -26,7 +26,7 @@
var $this = $(this);
var id = $this.attr('id');
if(settings.updateSelector == undefined) {
- settings.updateSelector = '#'+id+' .'+settings.pagerClass+' a, #'+id+' .'+settings.sorterClass+' a';
+ settings.updateSelector = '#'+id+' .'+settings.pagerClass.replace(/\s+/,'.')+' a, #'+id+' .'+settings.sorterClass.replace(/\s+/,'.')+' a';
}
$.fn.yiiListView.settings[id] = settings;
@@ -235,7 +235,8 @@ protected function registerClientScript()
if(isset($button['click']))
{
$function=CJavaScript::encode($button['click']);
- $js[]="jQuery('#{$this->grid->id} a.{$button['options']['class']}').live('click',$function);";
+ $class=preg_replace('/\s+/','.',$button['options']['class']);
+ $js[]="jQuery('#{$this->grid->id} a.{$class}').live('click',$function);";
}
}

0 comments on commit c9956ed

Please sign in to comment.