summaryrefslogtreecommitdiff
path: root/gstudio/static
diff options
context:
space:
mode:
authorKabir <kabir@gnowledge.org>2012-05-03 12:28:16 +0530
committerKabir <kabir@gnowledge.org>2012-05-03 12:28:16 +0530
commit76d725e9358d67eef35cbb6c5e1ac9566dff50fa (patch)
treedd8d88ebf9d5794d98006ad05e022e0c06fa578d /gstudio/static
parent9f8f3af43fe8ab6c3f3f5c4882ff4f325ee417b2 (diff)
downloadgnowsys-76d725e9358d67eef35cbb6c5e1ac9566dff50fa.tar.gz
filter added to attribute form in admin interface
Diffstat (limited to 'gstudio/static')
-rw-r--r--gstudio/static/gstudio/js/gstudio.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/gstudio/static/gstudio/js/gstudio.js b/gstudio/static/gstudio/js/gstudio.js
index d8d9d60..7ed67e2 100644
--- a/gstudio/static/gstudio/js/gstudio.js
+++ b/gstudio/static/gstudio/js/gstudio.js
@@ -47,23 +47,24 @@ $ = django.jQuery
$("#id_attributetype").change(function() {
test = $("#id_attributetype").val()
- url = "/nodetypes/ajax/?id=" + test
+ url = "/nodetypes/ajax/ajaxattribute/?id=" + test
+
$.get(url,
- function(data){
+ function(data){
- $("#id_subject").empty()
+ $("#id_subject").empty()
- for (var key in data) {
- $('#id_subject').append(
- $('<option></option>').val(key).html(data[key])
- );
- }
+ for (var key in data) {
+ $('#id_subject').append(
+ $('<option></option>').val(key).html(data[key])
+ );
+ }
- });
+ });
});