소스 검색

Allow global per input lookup

Denis K 9 년 전
부모
커밋
bf3d25c079
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      jet/static/jet/js/main.js
  2. 0 0
      jet/static/jet/js/main.min.js

+ 3 - 0
jet/static/jet/js/main.js

@@ -5,9 +5,12 @@
                 var $select = $(this);
                 var $selectedOption = $select.find('option:selected');
                 var url = $selectedOption.data('url');
+                var querysetLookup = $select.data('queryset--lookup');
 
                 if (url) {
                     document.location = $selectedOption.data('url');
+                } else if (querysetLookup) {
+                    document.location = '?' + querysetLookup + '=' + $selectedOption.val();
                 }
             });
         };

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
jet/static/jet/js/main.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.