From cafa78538cc6c6e13e1fbd2fc79b37f733b24192 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 15:26:36 +0530 Subject: [PATCH] make URL field longer; remove view similar --- gazetteer/places/admin.py | 4 ++-- gazetteer/static/js/gazetteer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index d16dec3..04b23c1 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -43,7 +43,7 @@ class FeatureTypeFilter(SimpleListFilter): ''' class authRecordForm(forms.ModelForm): - uri = forms.CharField(label="URI", required=True, widget=forms.TextInput(attrs={'size': '40'})) + uri = forms.CharField(label="URI", required=True, widget=forms.TextInput(attrs={'size': '50'})) class Meta: model = AuthorityRecord @@ -51,7 +51,7 @@ class authRecordForm(forms.ModelForm): class featuresForm(forms.ModelForm): url = forms.CharField(label='URI', required=True, - widget=forms.TextInput(attrs={'size': '40'})) + widget=forms.TextInput(attrs={'size': '50'})) authority_record = AutoCompleteSelectField('authority_record', required=False) time_frame = AutoCompleteSelectField('time_frame', required=False) feature_type = AutoCompleteSelectField('feature_type', required=False) diff --git a/gazetteer/static/js/gazetteer.js b/gazetteer/static/js/gazetteer.js index 795d41c..d894dd5 100644 --- a/gazetteer/static/js/gazetteer.js +++ b/gazetteer/static/js/gazetteer.js @@ -39,8 +39,8 @@ $(function() { function getRow(props) { var $tr = $(''); var $one = $('').appendTo($tr); - var $a = $('').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name + " ").appendTo($one); - var $a2 = $('').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one); + var $a = $('').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one); +// var $a2 = $('').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one); $('').text(props.feature_type).appendTo($tr); $('').text(props.admin2).appendTo($tr); $('').text(props.admin1).appendTo($tr);