Created
April 29, 2012 07:04
-
-
Save f0t0n/2537918 to your computer and use it in GitHub Desktop.
The dialog window's behavior is too stupid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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