Commit d8bc7998 authored by yPhil's avatar yPhil

Prefs: Translation Kick-in in tab.init

parent 121225d8
......@@ -32,8 +32,6 @@ PTL.dialog = {
],
open: function () {
PTL.util.translate();
$('.ui-widget-overlay').on('click', function() {
PTL.dialog.kill($dialog);
});
......@@ -65,8 +63,6 @@ PTL.dialog = {
$('#dialogs').load('/static/templates/dialogs.html #feedPrefs', function() {
PTL.util.translate();
var $dialog = $(this),
$dataStore = $button.parent().parent(),
$feed = $dataStore.parent().parent(),
......@@ -733,8 +729,6 @@ PTL.dialog = {
],
open: function() {
PTL.util.translate();
$('.ui-widget-overlay').on('click', function() {
PTL.dialog.kill($dialog);
});
......
......@@ -94,8 +94,6 @@ var PTL = (function() {
event.preventDefault();
});
PTL.util.translate();
$langMenu.val(PTL.prefs.readConfig('lang')).prop('selected', true);
$langMenu.change(function() {
......
......@@ -3,11 +3,12 @@
PTL.tab = {
init:function() {
$('#load-spinner').fadeIn('fast');
PTL.language = PTL.prefs.readConfig('lang');
PTL.util.translate();
var $tabs = $('#tabs').tabs({
heightStyle: 'content',
activate: function(event, ui) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment