This commit is contained in:
albert
2012-01-13 19:26:45 -05:00
parent 15ef261ffb
commit 29e44b9bfd
2 changed files with 2 additions and 3 deletions

View File

@@ -176,7 +176,6 @@ Danbooru.Note = {
$note_body.css({width: $note_body.width() + 5});
}
console.log("left=%d width=%d", $image.offset().left, $image.width());
if ($note_body.offset().left + $note_body.width() > doc_width) {
$note_body.css({
left: $note_body.position().left - 10 - ($note_body.offset().left + $note_body.width() - doc_width)

View File

@@ -14,12 +14,12 @@
Danbooru.Pool.initialize_add_to_pool_link = function() {
$("#add-to-pool-dialog").dialog({autoOpen: false});
$("#c-pools-posts #a-new input[type=text]").autocomplete({
$("#c-pool-elements #a-new input[type=text]").autocomplete({
source: function(req, resp) {
$.getJSON(
"/pools.json?search[name_contains]=" + req.term,
function(data) {
resp(data.map(function(x) {return x.pool.name;}));
resp(data.map(function(x) {return x.name;}));
}
);
},