Skip to content

Commit bbc9ae9

Browse files
committed
Try putting two tags at once now.
1 parent 10313e0 commit bbc9ae9

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

api/api/resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def get_object_list(self, request):
371371
query = {}
372372

373373
if "query" in request.GET:
374-
query = request.GET['query']
374+
query = json.loads(request.GET['query'])
375375
if "number" in request.GET:
376376
query['number'] = int(request.GET['number'])
377377
if "detector" in request.GET:
@@ -698,8 +698,8 @@ def obj_update(self, bundle, **kwargs):
698698
# Enforce string/bool types for checks array
699699
for key, value in updateDict['checks']:
700700
extre = "test"
701-
if type(key) != type(extre) or type(value) != type(True):
702-
701+
if type(key) != type(extre) or type(value) != type(True):
702+
pass
703703
elif request['status'] == 'processed':
704704
if 'pax_version' not in request:
705705
return {"number": doc['number'],

components/emo/js/emo_runs_streamer.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,18 @@ function ShowDetail(name, detector){
167167
"template_tags", "template_tagbutton", "run_detail_tags",
168168
"template_storage", "template_site", "detail_locations",
169169
"template_comment", "template_comments", "detail_comments",
170-
function(){SlideOutDetail()});});
170+
function(){
171+
SlideOutDetail()
172+
$(".newtagtextclass").on({
173+
keydown: function(e) {
174+
if (e.which === 32)
175+
return false;
176+
},
177+
change: function() {
178+
this.value = this.value.replace(/\s/g, "");
179+
}
180+
});
181+
});});
171182
}
172183

173184
function DateToString(dateval){

runs/templates/runs/runs_new.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ <h4 class="modal-title">Help</h4>
226226
resize();
227227

228228
window.onresize=function(){ resize() };
229+
229230
});
230231

231232
function ShowTransferErrors(){
@@ -394,7 +395,7 @@ <h5><strong>{% verbatim %}{{ host }}{% endverbatim %}</strong></h5>
394395
</emph>
395396
</div>
396397
<div class="col-xs-9">
397-
<input type="text" id="{% verbatim %}{{ oid }}{% endverbatim %}_formtext"
398+
<input type="text" class="newtagtextclass" id="{% verbatim %}{{ oid }}{% endverbatim %}_formtext"
398399
style="width:100%" name="content"></input>
399400
</div>
400401
<div class="col-xs-3">

0 commit comments

Comments
 (0)