bunch o things
This commit is contained in:
parent
ef62052984
commit
9c8f5b0e5e
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
archives/
|
archives/
|
||||||
export/
|
out/
|
||||||
config/__init.py
|
config/__init.py
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@ from selection import strutil
|
|||||||
from threading import Lock
|
from threading import Lock
|
||||||
import config
|
import config
|
||||||
|
|
||||||
sel = os.path.join(config.selection, "tm-selection.js")
|
sel = os.path.join(config.selection['path'], config.selection['sel'])
|
||||||
sel_dump = os.path.join(config.selection, "tm-selection-dump.js")
|
sel_dump = os.path.join(config.selection['path'], config.selection['sel_dump'])
|
||||||
|
|
||||||
LL = Lock()
|
LL = Lock()
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -8,8 +8,40 @@
|
|||||||
{
|
{
|
||||||
"list": "crumb",
|
"list": "crumb",
|
||||||
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1207&L=new-media-curating&F=&S=&P=1869"
|
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1207&L=new-media-curating&F=&S=&P=1869"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00094.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00060.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00088.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00089.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00096.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9704/msg00000.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00099.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list": "nettime_l",
|
||||||
|
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00106.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"desc": "..."
|
"desc": "something"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -26,31 +26,4 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#new').click(function(e) {
|
|
||||||
var v = $(this).text();
|
|
||||||
console.log(v)
|
|
||||||
if(v == "NEW") {
|
|
||||||
var form = $(this).parent("form");
|
|
||||||
form.append('<input name="tag" type="text" id="edit-tag" value="...">');
|
|
||||||
form.append('<textarea name="desc" id="edit-desc">...</textarea>');
|
|
||||||
$(this).text("ADD");
|
|
||||||
} else if (v == "ADD") {
|
|
||||||
if($("#edit-tag").val() === "..." & $("#edit-desc").text() === "...") {
|
|
||||||
$(this).text("NEW");
|
|
||||||
$("#edit-tag").remove()
|
|
||||||
$("#edit-desc").remove()
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var form = $(this).parent("form");
|
|
||||||
var g = form.serialize() + "&action=new";
|
|
||||||
$.post('/tags', g, function(d) {
|
|
||||||
if(d === 'ok') {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$(this).text("NEW");
|
|
||||||
$("#edit-tag").remove()
|
|
||||||
$("#edit-desc").remove()
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
@ -8,6 +8,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Selection [tags]</h1>
|
<h1>Selection [tags]</h1>
|
||||||
|
<h2><a href="/search" target="_blank">SEARCH</a></h2>
|
||||||
|
<h2><a href="/tags_w_lists" target="_blank">TAGS_W_LISTS</a></h2>
|
||||||
<form class="tag_item">
|
<form class="tag_item">
|
||||||
<button id="new">NEW</button>
|
<button id="new">NEW</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -9,7 +9,9 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>Selection [tags w lists]</h1>
|
<h1>Selection [tags w lists]</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<button id="commit">commit</button>
|
<h2><a href="/search" target="_blank">SEARCH</a></h2>
|
||||||
|
<h2><a href="/tags" target="_blank">TAGS</a></h2>
|
||||||
|
<!-- <button id="commit">commit</button> -->
|
||||||
<div id="all">
|
<div id="all">
|
||||||
{% for v in tags %}
|
{% for v in tags %}
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user