mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
34 lines
739 B
JavaScript
34 lines
739 B
JavaScript
(function ($) {
|
|
$(document).ready(function() {
|
|
if($("#pushservice").val() > 0) {
|
|
$('#pushsettings').show();
|
|
if($("#pushservice").val() == 3) {
|
|
$('#pushsettings_username').show();
|
|
}
|
|
}
|
|
$("#pushservice").change(function() {
|
|
if($(this).val() > 0) {
|
|
$('#pushsettings').show(500);
|
|
if($(this).val() == 3) {
|
|
$('#pushsettings_username').show();
|
|
}
|
|
else {
|
|
$('#pushsettings_username').hide();
|
|
}
|
|
|
|
if($(this).val() == 4) {
|
|
$('#pushservice_title').text("Device ID");
|
|
}
|
|
else {
|
|
$('#pushservice_title').text("API Key");
|
|
}
|
|
}
|
|
else {
|
|
$('#pushsettings').hide(500);
|
|
$('#pushsettings_username').hide();
|
|
}
|
|
});
|
|
});
|
|
}(jQuery));
|
|
|