Tweak on drive dialog
This commit is contained in:
parent
b42b71e0b6
commit
b8f5ab2d42
|
@ -564,7 +564,7 @@ textarea {
|
|||
<div style="margin: 5px;">Edit file permissions in <a href="http://drive.google.com/" target="_blank">Google Drive</a>.</div>
|
||||
<br>
|
||||
<div id="drive-file-list">
|
||||
<!-- filled with li#drive-file-list-item -->
|
||||
<!-- filled with li's -->
|
||||
</div>
|
||||
<button id="drive-new-file-button">New Drawing</button>
|
||||
<div class="dialog-button-bar">
|
||||
|
|
|
@ -618,9 +618,7 @@ function pa(a) {
|
|||
$("#drive-file-list").children().remove();
|
||||
a = a.items;
|
||||
for (var c in a) {
|
||||
var d = document.createElement("li");
|
||||
d.id = "drive-file-list-item";
|
||||
var e = document.createElement("a");
|
||||
var d = document.createElement("li"), e = document.createElement("a");
|
||||
d.appendChild(e);
|
||||
e.href = "#" + a[c].id;
|
||||
$(e).click(function() {
|
||||
|
|
|
@ -127,7 +127,6 @@ ascii.DriveController.prototype.loadFileList = function() {
|
|||
var items = result['items'];
|
||||
for (var i in items) {
|
||||
var entry = document.createElement('li');
|
||||
entry.id = "drive-file-list-item";
|
||||
var title = document.createElement('a');
|
||||
entry.appendChild(title);
|
||||
title.href = '#' + items[i]['id'];
|
||||
|
|
Loading…
Reference in New Issue