Skip to content

Instantly share code, notes, and snippets.

@f0t0n
Created April 29, 2012 07:04
Show Gist options
  • Save f0t0n/2537918 to your computer and use it in GitHub Desktop.
Save f0t0n/2537918 to your computer and use it in GitHub Desktop.
The dialog window's behavior is too stupid.
<?php
/**
* In /protected/views/book/view.php ln. 52
*/
$this->widget('ext.widgets.jui.JuiDialog', array(
'id'=>'book-dialog',
// additional javascript options for the dialog plugin
'options'=>array(
'title'=>'Dialog box 1',
'autoOpen'=>false,
'modal'=>true,
'resizable'=>false,
'width'=>'auto',
'close'=>'js:function(event, ui) { // WTF?!
$.get("", function(data) {
$("#chapters ul").html($("#chapters ul", data).html());
$(".tooltip").tooltip();
});
}',
),
'htmlOptions'=>array(
'style'=>'display: none;',
),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment