| Server IP : 87.98.154.146 / Your IP : 216.73.216.50 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/shortpixel-image-optimiser/res/js/screens/ |
Upload File : |
'use strict';
// MainScreen as an option for delegate functions
class ShortPixelScreen extends ShortPixelScreenBase
{
Init()
{
super.Init();
this.ListenPLUpload();
}
// Only listening on the nolist ( and more specific -> media addnew) , since the post editor classic/ gutenberg and others have this interface otherwise hidden.
ListenPLUpload() {
// Most screen will not have uploader defined or ready.
if (typeof uploader === 'undefined' || uploader === null)
{
return;
}
var self = this;
uploader.bind('UploadComplete', function (up, file, response)
{
// Give processor a swoop when uploading is done, while respecting set boundaries.
self.processor.RunProcess();
});
}
} // class