wiki page, comment views
This commit is contained in:
@@ -1246,9 +1246,9 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
Danbooru.WikiPage.initialize_preview_link = function() {
|
||||
$("#c-wiki-pages input[value=Cancel]").click(function(e) {
|
||||
e.preventDefault();
|
||||
window.back();
|
||||
$("#c-wiki-pages #preview a[name=toggle-preview]").click(function() {
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-wiki-pages input[value=Preview]").click(function(e) {
|
||||
@@ -1260,7 +1260,9 @@ $(document).ready(function() {
|
||||
body: $("#wiki_page_body").val()
|
||||
},
|
||||
success: function(data) {
|
||||
$("#preview").show().html(data);
|
||||
$("#dtext-help").hide();
|
||||
$("#preview").show();
|
||||
$("#preview .content").html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1284,6 +1286,7 @@ $(document).ready(function() {
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-forum-topics input[value=Preview]").click(function(e) {
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-forum-topics input[value=Preview]").click(function(e) {
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
}
|
||||
|
||||
Danbooru.WikiPage.initialize_preview_link = function() {
|
||||
$("#c-wiki-pages input[value=Cancel]").click(function(e) {
|
||||
e.preventDefault();
|
||||
window.back();
|
||||
$("#c-wiki-pages #preview a[name=toggle-preview]").click(function() {
|
||||
$("#preview").toggle();
|
||||
$("#dtext-help").toggle();
|
||||
});
|
||||
|
||||
$("#c-wiki-pages input[value=Preview]").click(function(e) {
|
||||
@@ -22,7 +22,9 @@
|
||||
body: $("#wiki_page_body").val()
|
||||
},
|
||||
success: function(data) {
|
||||
$("#preview").show().html(data);
|
||||
$("#dtext-help").hide();
|
||||
$("#preview").show();
|
||||
$("#preview .content").html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -119,6 +119,11 @@ menu {
|
||||
section {
|
||||
display: block; }
|
||||
|
||||
span.error {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
color: red; }
|
||||
|
||||
span.link {
|
||||
color: #006ffa;
|
||||
cursor: pointer; }
|
||||
@@ -264,11 +269,11 @@ div#c-pools div#a-edit ul.ui-sortable {
|
||||
padding: 0.5em; }
|
||||
div#c-pools div#a-edit ul.ui-sortable li.ui-state-default {
|
||||
margin-bottom: 20px;
|
||||
width: 250px;
|
||||
width: 180px;
|
||||
background: none; }
|
||||
div#c-pools div#a-edit ul.ui-sortable li.ui-state-placeholder {
|
||||
margin-bottom: 20px;
|
||||
width: 250px;
|
||||
width: 180px;
|
||||
height: 150px;
|
||||
background: none; }
|
||||
|
||||
@@ -411,15 +416,6 @@ div#artists div#show {
|
||||
font-size: 0.8em;
|
||||
font-style: italic; }
|
||||
|
||||
/*** Wiki Pages ***/
|
||||
div#c-wiki-pages span.version {
|
||||
color: #AAA; }
|
||||
div#c-wiki-pages h1 {
|
||||
margin-bottom: 0.5em; }
|
||||
div#c-wiki-pages div#a-edit textarea, div#c-wiki-pages div#a-new textarea {
|
||||
width: 500px;
|
||||
height: 40em; }
|
||||
|
||||
/*** Users ***/
|
||||
div.users div.new {
|
||||
max-width: 60em; }
|
||||
@@ -479,7 +475,8 @@ div#c-forum-topics textarea {
|
||||
height: 40em; }
|
||||
div#c-forum-topics div#form-content {
|
||||
float: left;
|
||||
width: 500px; }
|
||||
width: 450px;
|
||||
padding-right: 1em; }
|
||||
div#c-forum-topics div#form-aside {
|
||||
float: left;
|
||||
width: 400px; }
|
||||
@@ -487,3 +484,21 @@ div#c-forum-topics div#form-aside {
|
||||
margin-top: 0.5em;
|
||||
padding-top: 0.5em;
|
||||
border-top: 1px solid #AAA; }
|
||||
|
||||
/*** Wiki Pages ***/
|
||||
div#c-wiki-pages span.version {
|
||||
color: #AAA; }
|
||||
div#c-wiki-pages div#form-content {
|
||||
float: left;
|
||||
width: 450px;
|
||||
padding-right: 1em; }
|
||||
div#c-wiki-pages div#form-aside {
|
||||
float: left;
|
||||
width: 400px; }
|
||||
div#c-wiki-pages div#form-aside div#preview > p {
|
||||
margin-top: 0.5em;
|
||||
padding-top: 0.5em;
|
||||
border-top: 1px solid #AAA; }
|
||||
div#c-wiki-pages div#a-edit textarea, div#c-wiki-pages div#a-new textarea {
|
||||
width: 400px;
|
||||
height: 40em; }
|
||||
|
||||
@@ -154,6 +154,12 @@ section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
span.error {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
|
||||
span.link {
|
||||
color: $link_color;
|
||||
cursor: pointer;
|
||||
@@ -398,13 +404,13 @@ div#c-pools {
|
||||
|
||||
li.ui-state-default {
|
||||
margin-bottom: 20px;
|
||||
width: 250px;
|
||||
width: 180px;
|
||||
background: none;
|
||||
}
|
||||
|
||||
li.ui-state-placeholder {
|
||||
margin-bottom: 20px;
|
||||
width: 250px;
|
||||
width: 180px;
|
||||
height: 150px;
|
||||
background: none;
|
||||
}
|
||||
@@ -689,28 +695,6 @@ div#artists {
|
||||
}
|
||||
|
||||
|
||||
/*** Wiki Pages ***/
|
||||
div#c-wiki-pages {
|
||||
span.version {
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
div#a-edit, div#a-new {
|
||||
textarea {
|
||||
width: 500px;
|
||||
height: 40em;
|
||||
}
|
||||
|
||||
div#preview {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*** Users ***/
|
||||
div.users {
|
||||
div.new {
|
||||
@@ -824,7 +808,8 @@ div#c-forum-topics {
|
||||
|
||||
div#form-content {
|
||||
float: left;
|
||||
width: 500px;
|
||||
width: 450px;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
div#form-aside {
|
||||
@@ -838,3 +823,39 @@ div#c-forum-topics {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*** Wiki Pages ***/
|
||||
div#c-wiki-pages {
|
||||
span.version {
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
div#form-content {
|
||||
float: left;
|
||||
width: 450px;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
div#form-aside {
|
||||
float: left;
|
||||
width: 400px;
|
||||
|
||||
div#preview > p {
|
||||
margin-top: 0.5em;
|
||||
padding-top: 0.5em;
|
||||
border-top: 1px solid #AAA;
|
||||
}
|
||||
}
|
||||
|
||||
div#a-edit, div#a-new {
|
||||
textarea {
|
||||
width: 400px;
|
||||
height: 40em;
|
||||
}
|
||||
|
||||
div#preview {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user