Tweak on drive dialog

This commit is contained in:
Lewis Hemens 2014-03-25 23:49:19 +00:00
parent b42b71e0b6
commit b8f5ab2d42
3 changed files with 2 additions and 5 deletions

View File

@ -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> <div style="margin: 5px;">Edit file permissions in <a href="http://drive.google.com/" target="_blank">Google Drive</a>.</div>
<br> <br>
<div id="drive-file-list"> <div id="drive-file-list">
<!-- filled with li#drive-file-list-item --> <!-- filled with li's -->
</div> </div>
<button id="drive-new-file-button">New Drawing</button> <button id="drive-new-file-button">New Drawing</button>
<div class="dialog-button-bar"> <div class="dialog-button-bar">

View File

@ -618,9 +618,7 @@ function pa(a) {
$("#drive-file-list").children().remove(); $("#drive-file-list").children().remove();
a = a.items; a = a.items;
for (var c in a) { for (var c in a) {
var d = document.createElement("li"); var d = document.createElement("li"), e = document.createElement("a");
d.id = "drive-file-list-item";
var e = document.createElement("a");
d.appendChild(e); d.appendChild(e);
e.href = "#" + a[c].id; e.href = "#" + a[c].id;
$(e).click(function() { $(e).click(function() {

View File

@ -127,7 +127,6 @@ ascii.DriveController.prototype.loadFileList = function() {
var items = result['items']; var items = result['items'];
for (var i in items) { for (var i in items) {
var entry = document.createElement('li'); var entry = document.createElement('li');
entry.id = "drive-file-list-item";
var title = document.createElement('a'); var title = document.createElement('a');
entry.appendChild(title); entry.appendChild(title);
title.href = '#' + items[i]['id']; title.href = '#' + items[i]['id'];