Skip to content

Commit 0896a5f

Browse files
committed
js improvement
1 parent 181c4e4 commit 0896a5f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

BaseActiveRecord.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ public function getImagePath($dir = 'full', $attr = 'image')
184184
public function purgeXSS($attr)
185185
{
186186
$this->$attr = htmlspecialchars($this->$attr, ENT_QUOTES);
187-
return true;
188187
}
189188

190189
//----------- Rules -----------
@@ -306,4 +305,4 @@ public function beforeSave($insert)
306305
return false;
307306
}
308307

309-
}
308+
}

SorterColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function sortButtonJs()
151151
$pjaxId = '#'.$this->pjaxId;
152152

153153
$js = <<<JS
154-
$(".grid-sort-button").on('click', function () {
154+
$(document).off('click', ".grid-sort-button").on('click', ".grid-sort-button", function () {
155155
var _t = $(this);
156156
_t.addClass('disabled').html('$sortingText');
157157

0 commit comments

Comments
 (0)