fix missing class renaming

This commit is contained in:
El RIDO 2017-01-29 14:48:56 +01:00
parent d678f5dada
commit cae5a71151
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 5 additions and 5 deletions

View file

@ -1205,7 +1205,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
);
var shortenButton = $('#shortenbutton');
if (shortenButton) {
shortenButton.click($.proxy(controller.sendToShortener, privatebin));
shortenButton.click($.proxy(controller.sendToShortener, controller));
}
$('#deletelink').html('<a href="' + deleteUrl + '">' + i18n._('Delete data') + '</a>');
controller.pasteResult.removeClass('hidden');
@ -1787,8 +1787,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
}
/**
* main application start, called when DOM is fully loaded
* runs privatebin when translations were loaded
* main application start, called when DOM is fully loaded and
* runs controller initalization after translations are loaded
*/
$(i18n.loadTranslations($.proxy(controller.init, controller)));