Skip to content

Commit e4e8c92

Browse files
committed
Revert "Resolve merge conflicts"
This reverts commit ddaecad.
1 parent ddaecad commit e4e8c92

File tree

5 files changed

+4
-22
lines changed

5 files changed

+4
-22
lines changed

build/shortpixel/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"ReThumbAdvanced\/shortpixelmodules","description":"ShortPixel submodules","type":"function","autoload":{"psr-4":{"ReThumbAdvanced\\ShortPixelLogger":"log\/src","ReThumbAdvanced\\Notices":"notices\/src","ReThumbAdvanced\\ShortQ":"shortq\/src"}}}
1+
{"name":"ReThumbAdvanced\/shortpixelmodules","description":"ShortPixel submodules","type":"function","autoload":{"psr-4":{"ReThumbAdvanced\\ShortPixelLogger":"log\/src","ReThumbAdvanced\\Notices":"notices\/src","ReThumbAdvanced\\ShortQ":"shortq\/src"}}}

build/shortpixel/notices/src/NoticeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function getNotices()
139139
public function getNoticesForDisplay()
140140
{
141141
$newNotices = array();
142+
142143
foreach(self::$notices as $notice)
143144
{
144145
if ($notice->isDismissed()) // dismissed never displays.

js/rta.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ rtaJS.prototype.doProcess = function()
226226

227227
this.in_process = true;
228228
this.checkSubmitReady();
229-
this.updateProgress();
230-
this.togglePanel('progress', true);
231-
this.processStoppable();
232229

233230
this.togglePanel('progress', true);
234231
this.processStoppable();
@@ -289,21 +286,6 @@ rtaJS.prototype.doProcess = function()
289286

290287
}
291288

292-
// check if progress is stoppable and activate stop process button, or not.
293-
rtaJS.prototype.processStoppable = function()
294-
{
295-
var stoppable = false;
296-
297-
if (this.in_process)
298-
stoppable = true;
299-
300-
if (stoppable)
301-
$('.stop-process').prop('disabled', false);
302-
else
303-
$('.stop-process').prop('disabled', true);
304-
305-
}
306-
307289
// check if progress is stoppable and activate stop process button, or not.
308290
rtaJS.prototype.processStoppable = function()
309291
{

scss/rta-admin-view.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,5 @@
414414

415415
}
416416

417+
417418
} // class rta-admin

templates/admin/view_regenerate_process.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
<text class="CircularProgressbar-text" x="50" y="50">0%</text>
3030
<text class="progress-count" x="50" y="70"><tspan class='current'>0</tspan> / <tspan class='total'>0</tspan></text>
3131
</svg>
32-
<button class='button stop-process' disabled><?php _e('Stop Process', 'regenerate-thumbnails-advanced') ?></button>
3332
</div>
3433
</div>
3534

3635
<div class="rta_status_box">
3736
<button class='button stop-process' disabled><?php _e('Stop Process', 'regenerate-thumbnails-advanced') ?></button>
37+
3838
<div class="rta_notices rta_panel_off">
3939
<ul class="statuslist">
4040
</ul>
@@ -49,8 +49,6 @@
4949

5050
</div>
5151

52-
53-
5452
<?php
5553
$plugins = get_plugins();
5654
$spInstalled = isset($plugins['shortpixel-image-optimiser/wp-shortpixel.php']);

0 commit comments

Comments
 (0)