Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion EUpdateDialog/EUpdateDialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function run()

// Open update dialog the clicking target elements
$cs->registerScript( 'eupdatedialog', "
jQuery( '{$this->target}' ).live( 'click', updateDialogOpen );",
jQuery( '{$this->target}' ).on( 'click', updateDialogOpen );",
CClientScript::POS_END );

// Register additional options for an extension
Expand Down
8 changes: 4 additions & 4 deletions EUpdateDialog/assets/EUpdateDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ var updateDialog = {
this.csrfToken = this.getCsrfToken();

// Attach a handler for all submit buttons in dialog content
$( '.update-dialog-content input[type=submit]' )
.live( 'click', function( e ){
$( '.update-dialog-content' )
.on('click', 'input[type=submit]', function (e) {
// Prevent default action
e.preventDefault();

Expand All @@ -192,8 +192,8 @@ var updateDialog = {
});

// Attach a handler for all cancel buttons in dialog content
$( '.update-dialog-content .update-dialog-cancel-button' )
.live( 'click', function( e ){
$( '.update-dialog-content' )
.on('click', '.update-dialog-cancel-button', function (e) {
// Prevent default action
e.preventDefault();

Expand Down