diff --git a/js/privatebin.js b/js/privatebin.js
index d9eeda1..e8ba71f 100644
--- a/js/privatebin.js
+++ b/js/privatebin.js
@@ -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('' + i18n._('Delete data') + '');
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)));
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index c6a5661..69d0e01 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -69,7 +69,7 @@ if ($MARKDOWN):
-
+
diff --git a/tpl/page.php b/tpl/page.php
index 98d7f32..4860f8c 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -47,7 +47,7 @@ if ($MARKDOWN):
-
+