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

added ability to edit root folder

This commit is contained in:
Luke Pulverenti 2013-06-02 10:33:51 -04:00
parent 7df9991141
commit ae8058a7d5
5 changed files with 30 additions and 3 deletions

View file

@ -347,6 +347,12 @@ a.itemTag:hover {
margin-top: -30px;
}
.itemDetailImage:hover {
-moz-box-shadow: 0 0 20px 3px #2572EB;
-webkit-box-shadow: 0 0 20px 3px #2572EB;
box-shadow: 0 0 20px 3px #2572EB;
}
.parentName {
padding: .5em;
text-align: center;

View file

@ -64,6 +64,15 @@ h2 {
font-size: 20pt;
}
h1 a {
font-weight: normal;
text-decoration: none;
}
h1 a:hover {
text-decoration: underline;
}
@media all and (min-width: 750px) {
h1 {
font-size: 28pt;

View file

@ -9,6 +9,7 @@
<div data-role="content">
<div class="content-primary">
<div class="readOnlyContent">
<div data-role="collapsible" data-content-theme="c" data-collapsed="false" style="margin-top: 2em;">
<h3>Server Information</h3>
<div>

View file

@ -15,7 +15,7 @@
<div id="views">
</div>
<h1 class="listHeader">Collections</h1>
<h1 class="listHeader"><a href="itemlist.html">Collections</a></h1>
<div id="divCollections"></div>
</td>

View file

@ -11,6 +11,8 @@
StartIndex: 0
};
var currentItem;
function reloadItems(page) {
Dashboard.showLoadingMsg();
@ -66,7 +68,11 @@
Dashboard.hideLoadingMsg();
});
ApiClient.getItem(userId, query.ParentId).done(function (item) {
var promise = query.ParentId ? ApiClient.getItem(userId, query.ParentId) : ApiClient.getRootFolder(userId);
promise.done(function (item) {
currentItem = item;
var name = item.Name;
@ -140,7 +146,7 @@
$('#btnEdit', page).on('click', function () {
Dashboard.navigate("edititemmetadata.html?id=" + query.ParentId);
Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id);
});
}).on('pageshow', "#itemListPage", function () {
@ -177,6 +183,11 @@
}).checkboxradio('refresh');
$('#selectView', this).val(view).selectmenu('refresh');
}).on('pagehide', "#itemListPage", function () {
currentItem = null;
});
})(jQuery, document);