view update

This commit is contained in:
devin authored and chris committed 2012-12-07 04:21:26 +08:00
1 parent 1b4c76a472
commit 89e25fe7a2
7 files changed
+76 -38

No files matched your search

@@ -136,18 +136,21 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
$.each(journalData,function(i,journal){
$.each(journal.papers,function(j,paper){
li = null;
li = $('<li class="list_t_item"></li>');
li.append('<div class="list_item_action"><a href="" class="icon-check-empty"></a><a href="" class="icon-star-empty"></a></div><div class="list_t_title">'+journal.title+'</div>');
li = $('<li class="list_t_item file_view"></li>');
li.append('<div class="list_item_action"><a href="" class="icon-check-empty"></a><a href="" class="icon-star-empty"></a></div><div class="list_t_title">'+journal.title+'</div><div class="list_t_des"></div>');
var file_list = li.find('.list_t_des');
$.each(paper.files,function(k,file){
var thistitle = file.title;
if(!file.title)
thistitle = "Untitled File";
var img = $('<div class="list_t_des"><a href="'+file.url+'" target="_blank" ><img src="'+file.icon+'" />'+thistitle+'</a></div>');
li.append(img);
thistitle = ( thistitle.length > 8 )? thistitle.substring(0,8)+'...' : thistitle;
if(!file.title){
thistitle = "Untitled File";
}
var img = $('<a class="file" href="'+file.url+'" target="_blank" ><img src="'+file.icon+'" /><span class="filetitle">'+thistitle+'</span></a>');
file_list.append(img);
})
li.append('<div class="list_item_function"><a class="journal_paper_edit admbg2 admtxt" href="'+paper.url_edit+'">Edit</a> <a class="journal_paper_delete admbg2 admtxt" href="'+paper.url_delete+'">Delete</a></div>');
column.find("ul").append(li);
if(counter%5==0){
if(counter%3==0){
$("#journal_p div#paper_list div.overview").append(column);
column = $('<div class="g_col list_t"><ul></ul></div>');
}
+39 -3
View File
@@ -720,6 +720,7 @@ a:focus { outline: none; }
padding: 4px;
font-family: Arial, sans-serif;
font-size: 11px;
-webkit-text-size-adjust: none;
}
.list_item_action a {
display: block;
@@ -733,6 +734,29 @@ a:focus { outline: none; }
.list_item_action .icon-check-empty { color: #999; font-size: 20px; }
.list_item_action .icon-check { color: #333; font-size: 20px; }
#paper_list .list_t_item.file_view {
height: 148px;
}
#paper_list .file_view .file {
display: inline-block;
width: 62px;
height: 50px;
text-align: center;
}
#paper_list .file_view .file:hover {
background-color: #ddd;
}
#paper_list .file_view .file img {
width: 24px;
display: block;
margin: 0 auto;
margin-top: 4px;
}
#paper_list .file_view .filetitle {
font-size: 11px;
-webkit-text-size-adjust: none;
}
/* Journal Paper Add */
#paper_add .s_grid_con {
float: left;
@@ -779,6 +803,11 @@ a:focus { outline: none; }
line-height: 20px;
margin: 1px 1px 6px 1px;
}
#journal_list .list_t_desc {
font-family: Arial, sans-serif;
font-size: 12px;
color: #999;
}
/* Journal Co-Author */
#co_author {}
@@ -791,6 +820,7 @@ a:focus { outline: none; }
padding: 4px;
font-family: Arial, sans-serif;
font-size: 11px;
-webkit-text-size-adjust: none;
}
#co_author .g_col:first-child {
margin-left: 0;
@@ -819,7 +849,7 @@ a:focus { outline: none; }
/* Journal Co-Author Relationship*/
#co_author_relation_table .s_grid_con {
float: left;
width: 346px;
width: 370px;
height: 456px;
margin-left: 12px;
padding-left: 12px;
@@ -835,19 +865,25 @@ a:focus { outline: none; }
height: 64px;
}
#co_author_relation_table .edit_co_author_relation {
margin-left: -10px;
/*margin-left: -10px;*/
}
#co_author_relation_table .list_item_function a {
display: inline-block;
padding: 4px;
font-family: Arial, sans-serif;
font-size: 11px;
-webkit-text-size-adjust: none;
}
#co_author_relation_table .form_space {
margin-bottom: 10px;
font-size: 15px;
font-size: 18px;
font-family: Arial, sans-serif;
}
/* Journal New Co-Author */
#new_co_author label {
margin-right: 0;
}
/* App */
.app_frame {