Commit 30afbfdf authored by yPhil's avatar yPhil

UI: Dialog defaults

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