Эх сурвалжийг харах

HUE-2436 [oozie and jobsub] Django-1.6: Change oozie autocomplete to return a dict

Erick Tryzelaar 11 жил өмнө
parent
commit
32993e2362

+ 2 - 2
apps/jobsub/src/jobsub/templates/designs.mako

@@ -947,8 +947,8 @@ $(document).ready(function(e) {
 
   // load the autocomplete properties
   var AUTOCOMPLETE_PROPERTIES;
-  $.getJSON("${ url('oozie:autocomplete_properties') }", function (properties) {
-    AUTOCOMPLETE_PROPERTIES = properties;
+  $.getJSON("${ url('oozie:autocomplete_properties') }", function (data) {
+    AUTOCOMPLETE_PROPERTIES = data.properties;
   });
 });
 </script>

+ 2 - 2
apps/oozie/src/oozie/templates/editor/edit_workflow.mako

@@ -1119,8 +1119,8 @@ $(document).ready(function () {
   }
 
   // load the autocomplete properties
-  $.getJSON("${ url('oozie:autocomplete_properties') }", function (properties) {
-    AUTOCOMPLETE_PROPERTIES = properties;
+  $.getJSON("${ url('oozie:autocomplete_properties') }", function (data) {
+    AUTOCOMPLETE_PROPERTIES = data.properties;
   });
 });
 

+ 1 - 1
apps/oozie/src/oozie/views/api.py

@@ -416,4 +416,4 @@ def workflows(request):
 
 
 def autocomplete_properties(request):
-  return JsonResponse(_STD_PROPERTIES)
+  return JsonResponse({ 'properties': _STD_PROPERTIES })