Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: register clients scripts after rendering the content #241

Closed
qiangxue opened this issue Feb 15, 2012 · 0 comments
Closed

Suggestion: register clients scripts after rendering the content #241

qiangxue opened this issue Feb 15, 2012 · 0 comments

Comments

@qiangxue
Copy link
Member

I've writed EditinplaceColumn class (based on http://code.google.com/p/jquery-in-place-editor/), for updating some fields inside the grid
[code]
...
'columns' => array(
...
array(
'class' => 'EditinplaceColumn',
'action' => array('/ogoods/updatefields'),
'name'=>'price',
'type' => 'currency',
'htmlOptions'=>array(
'class'=>'currency-cell ogoods-price'
),
'options' => array(
'delegate' => array(
'didCloseEditInPlace' => 'js:updateItemTotalPrice'
)
)
),
...
)
...
[/code]

this class adds JS code to 'afterAjaxUpdate' for reinitializing inplace editor after grid ajax updating.

but this code is absent in the html page because the method 'registerClientScript' in CBaseListView is called before content rendering, but client script need to be registerd just after content (all column with IPE) was rendered.

Migrated from http://code.google.com/p/yii/issues/detail?id=2815


earlier comments

qiang.xue said, at 2012-01-01T03:37:10.000Z:

set for 1.1.10 milestone

qiang.xue said, at 2012-01-01T03:37:36.000Z:

set for 1.1.10 milestone

@samdark samdark closed this as completed Nov 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants