mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +02:00
Fix jQuery UI Dialog removed deprecated position setter
Fix indent
This commit is contained in:
parent
2cea7846ea
commit
9be50b8e28
2 changed files with 14 additions and 8 deletions
|
@ -50,6 +50,10 @@ function showPlaylistDialog(e, item_type, item_ids) {
|
|||
width: 300,
|
||||
height: 100,
|
||||
autoOpen: false,
|
||||
position: {
|
||||
my: "left+10 top",
|
||||
of: e
|
||||
},
|
||||
open: function () {
|
||||
closeplaylist = 1;
|
||||
$(document).bind('click', overlayclickclose);
|
||||
|
@ -67,7 +71,6 @@ function showPlaylistDialog(e, item_type, item_ids) {
|
|||
}
|
||||
});
|
||||
|
||||
$("#playlistdialog").dialog("option", "position", [e.clientX + 10, e.clientY]);
|
||||
$("#playlistdialog").dialog("open");
|
||||
closeplaylist = 0;
|
||||
}
|
||||
|
@ -104,6 +107,10 @@ function showBroadcastsDialog(e) {
|
|||
width: 150,
|
||||
height: 70,
|
||||
autoOpen: false,
|
||||
position: {
|
||||
my: "left-180 top",
|
||||
of: e
|
||||
},
|
||||
open: function () {
|
||||
closebroadcasts = 1;
|
||||
$(document).bind('click', broverlayclickclose);
|
||||
|
@ -121,7 +128,6 @@ function showBroadcastsDialog(e) {
|
|||
}
|
||||
});
|
||||
|
||||
$("#broadcastsdialog").dialog("option", "position", [e.clientX - 180, e.clientY]);
|
||||
$("#broadcastsdialog").dialog("open");
|
||||
closebroadcasts = 0;
|
||||
}
|
||||
|
@ -158,6 +164,10 @@ function showShareDialog(e, object_type, object_id) {
|
|||
width: 200,
|
||||
height: 90,
|
||||
autoOpen: false,
|
||||
position: {
|
||||
my: "left+10 top",
|
||||
of: e
|
||||
},
|
||||
open: function () {
|
||||
closeshare = 1;
|
||||
$(document).bind('click', shoverlayclickclose);
|
||||
|
@ -175,7 +185,6 @@ function showShareDialog(e, object_type, object_id) {
|
|||
}
|
||||
});
|
||||
|
||||
$("#sharedialog").dialog("option", "position", [e.clientX + 10, e.clientY]);
|
||||
$("#sharedialog").dialog("open");
|
||||
closeshare = 0;
|
||||
}
|
||||
|
@ -298,8 +307,6 @@ function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, refresh_ro
|
|||
show: { effect: "fade", duration: 400 },
|
||||
open: function () {
|
||||
$(this).load(parent.contentUrl, function() {
|
||||
$(this).dialog('option', 'position', 'center');
|
||||
|
||||
if ($('#edit_tags').length > 0) {
|
||||
$("#edit_tags").tagit({
|
||||
allowSpaces: true,
|
||||
|
@ -329,7 +336,7 @@ function showEditDialog(edit_type, edit_id, edit_form_id, edit_title, refresh_ro
|
|||
}
|
||||
|
||||
$(window).resize(function() {
|
||||
$("#editdialog").dialog("option", "position", ['center', 'center']);
|
||||
$("#editdialog").dialog("option", "position", {my: "center", at: "center", of: window});
|
||||
});
|
||||
|
||||
function check_inline_song_edit(type, song) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue