mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 15:05:44 +00:00
Merge branch '2.0'
This commit is contained in:
commit
5091bf91e5
@ -53,6 +53,7 @@
|
||||
|
||||
// set button to "submitting" state
|
||||
$button.addClass('btn--loading loading');
|
||||
$button.attr('disabled', true);
|
||||
|
||||
if ($button.is('button')) {
|
||||
$button.append($(
|
||||
@ -75,6 +76,7 @@
|
||||
var $button = this.getButton();
|
||||
|
||||
$button.removeClass('btn--loading loading');
|
||||
$button.attr('disabled', false);
|
||||
$button.find('.btn__loading-icon').remove();
|
||||
$button.css('width', 'auto');
|
||||
},
|
||||
@ -89,7 +91,7 @@
|
||||
success: function(data) {
|
||||
// No report, so let user create one
|
||||
if (!data) {
|
||||
this.buttonReset();
|
||||
self.buttonReset();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ class CMSExternalLinksController extends Controller
|
||||
// Format status
|
||||
$track = BrokenExternalPageTrackStatus::get_latest();
|
||||
if ($track) {
|
||||
return Convert::array2json([
|
||||
return json_encode([
|
||||
'TrackID' => $track->ID,
|
||||
'Status' => $track->Status,
|
||||
'Completed' => $track->getCompletedPages(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user