Commit 30afbfdf authored by yPhil's avatar yPhil

UI: Dialog defaults

parent a3556646
......@@ -26,8 +26,6 @@ PTL.dialog = {
],
open: function () {
PTL.util.translate();
$('.ui-widget-overlay').on('click', function() {
PTL.dialog.kill($dialog);
});
......@@ -59,8 +57,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(),
......@@ -685,8 +681,6 @@ PTL.dialog = {
],
open: function() {
PTL.util.translate();
$('.ui-widget-overlay').on('click', function() {
PTL.dialog.kill($dialog);
});
......
......@@ -230,11 +230,13 @@ var PTL = (function() {
height: 'auto',
width: PTL.util.vWidth(),
modal: true,
bgiframe: true,
show: 'fade',
autoOpen: true
});
$.ui.dialog.prototype._init = function() {
PTL.util.translate();
};
},
sideMenu: function(action) {
......
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