diff options
author | Kabir <kabir@gnowledge.org> | 2012-05-03 12:28:16 +0530 |
---|---|---|
committer | Kabir <kabir@gnowledge.org> | 2012-05-03 12:28:16 +0530 |
commit | 76d725e9358d67eef35cbb6c5e1ac9566dff50fa (patch) | |
tree | dd8d88ebf9d5794d98006ad05e022e0c06fa578d /gstudio/static/gstudio | |
parent | 9f8f3af43fe8ab6c3f3f5c4882ff4f325ee417b2 (diff) | |
download | gnowsys-76d725e9358d67eef35cbb6c5e1ac9566dff50fa.tar.gz |
filter added to attribute form in admin interface
Diffstat (limited to 'gstudio/static/gstudio')
-rw-r--r-- | gstudio/static/gstudio/js/gstudio.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gstudio/static/gstudio/js/gstudio.js b/gstudio/static/gstudio/js/gstudio.js index d8d9d608..7ed67e24 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]) + ); + } - }); + }); }); |