1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

extract scripts

This commit is contained in:
Luke Pulverenti 2015-06-10 00:01:14 -04:00
parent d84e09e501
commit 6c97b11f21
41 changed files with 8363 additions and 204 deletions

View file

@ -22,6 +22,8 @@
$('#chkEnableChromecastAc3', page).checked(AppSettings.enableChromecastAc3()).checkboxradio("refresh");
$('#txtSyncPath', page).val(AppSettings.syncPath());
Dashboard.hideLoadingMsg();
}
@ -59,6 +61,8 @@
AppSettings.enableChromecastAc3($('#chkEnableChromecastAc3', page).checked());
AppSettings.syncPath($('#txtSyncPath', page).val());
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
ApiClient.getDisplayPreferences('home', userId, 'webclient').done(function (result) {
@ -77,6 +81,15 @@
$('.webClientPreferencesForm', page).off('submit', onSubmit).on('submit', onSubmit);
$('.btnSelectSyncPath', page).on('click', function () {
require(['nativedirectorychooser'], function () {
NativeDirectoryChooser.chooseDirectory().done(function (path) {
$('#txtSyncPath', page).val(path);
});
});
});
}).on('pageshowready', "#webClientPreferencesPage", function () {
var page = this;
@ -112,6 +125,12 @@
} else {
$('.fldFullscreen', page).hide();
}
if (AppInfo.supportsSyncPathSetting) {
$('.fldSyncPath', page).show();
} else {
$('.fldSyncPath', page).hide();
}
});
})(jQuery, window, document);