[Server] small change on request()
This commit is contained in:
1 parent
dd470dcd66
commit
83fee9dc06
1 file changed
+5
-1
@@ -46,6 +46,10 @@
|
|||||||
data.timeout = 10000; //10 sec. timeout
|
data.timeout = 10000; //10 sec. timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((typeof data.type) == "undefined") {
|
||||||
|
data.type = "GET";
|
||||||
|
}
|
||||||
|
|
||||||
if (message != "noOverlay") {
|
if (message != "noOverlay") {
|
||||||
var message2 = message;
|
var message2 = message;
|
||||||
if (i18n.t) {
|
if (i18n.t) {
|
||||||
@@ -1227,7 +1231,7 @@
|
|||||||
if (name != null
|
if (name != null
|
||||||
&& name.replace(" ", "") != ""
|
&& name.replace(" ", "") != ""
|
||||||
&& $('h2').filter(function () { return this.textContent == name; }).length == 0) {
|
&& $('h2').filter(function () { return this.textContent == name; }).length == 0) {
|
||||||
request({ url: "addPlaylist?playlistName=" + name }, "Creating...").done(function () {
|
request({ url: "addPlaylist?playlistName=" + name, dataType: "json" }, "Creating...").done(function () {
|
||||||
request({
|
request({
|
||||||
url: "getPlaylists"
|
url: "getPlaylists"
|
||||||
}).done(function (data2) {
|
}).done(function (data2) {
|
||||||
|
|||||||
Reference in new issue
Block a user