Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Sisk
committed
Dec 3, 2013
1 parent
aa8f874
commit 5699986
Showing
13 changed files
with
219 additions
and
219 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/** Automatically continue legacy upgrades. */ | ||
jQuery( function( $ ) { | ||
setTimeout( function() { | ||
$( '.webcomic-auto #upgrade_legacy' ).trigger( 'click' ); | ||
$( ".webcomic-auto #upgrade_legacy" ).trigger( "click" ); | ||
}, 5000 ); | ||
|
||
$( '.webcomic-auto #upgrade_legacy' ).on( 'click', function() { | ||
$( ".webcomic-auto #upgrade_legacy" ).on( "click", function() { | ||
$( this ).hide(); | ||
|
||
$( '.webcomic-auto-message' ).html( $( '[data-webcomic-upgrade-continue]' ).data( 'webcomic-upgrade-continue' ) ); | ||
$( ".webcomic-auto-message" ).html( $( "[data-webcomic-upgrade-continue]" ).data( "webcomic-upgrade-continue" ) ); | ||
} ); | ||
} ); |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
jQuery( function( $ ) { | ||
var url = $( '[data-webcomic-admin-url]' ).data( 'webcomic-admin-url' ); | ||
var url = $( "[data-webcomic-admin-url]" ).data( "webcomic-admin-url" ); | ||
|
||
/** Update meta data values in the quick edit box for pages. */ | ||
$( document ).on( 'click', 'a.editinline', function() { | ||
$( document ).on( "click", "a.editinline", function() { | ||
$.getJSON( url, { | ||
post: $( this ).parents( 'tr' ).attr( 'id' ).substr( 5, $( this ).parents( 'tr' ).attr( 'id' ).length ), | ||
webcomic_admin_ajax: 'WebcomicPages::ajax_quick_edit' | ||
post: $( this ).parents( "tr" ).attr( "id" ).substr( 5, $( this ).parents( "tr" ).attr( "id" ).length ), | ||
webcomic_admin_ajax: "WebcomicPages::ajax_quick_edit" | ||
}, function ( data ) { | ||
$( '#webcomic_page_collection' ).val( data.collection ); | ||
$( "#webcomic_page_collection" ).val( data.collection ); | ||
} ); | ||
} ); | ||
|
||
/** Save meta data values from the quick edit box for pages. */ | ||
$( '.save' ).on( 'click', function() { | ||
$( ".save" ).on( "click", function() { | ||
$.get( url, { | ||
post: $( this ).parents( 'tr' ).attr( 'id' ).substr( 5, $( this ).parents( 'tr' ).attr( 'id' ).length ), | ||
collection: $( '#webcomic_page_collection' ).val(), | ||
webcomic_page_inline_save: $( '#webcomic_page_inline_save' ).val(), | ||
webcomic_admin_ajax: 'WebcomicPages::ajax_quick_save' | ||
post: $( this ).parents( "tr" ).attr( "id" ).substr( 5, $( this ).parents( "tr" ).attr( "id" ).length ), | ||
collection: $( "#webcomic_page_collection" ).val(), | ||
webcomic_page_inline_save: $( "#webcomic_page_inline_save" ).val(), | ||
webcomic_admin_ajax: "WebcomicPages::ajax_quick_save" | ||
} ); | ||
} ); | ||
} ); |
Oops, something went wrong.