fix typo in JS for posting to queue (bug 937988)
This commit is contained in:
Родитель
75609a7911
Коммит
386e0cef63
|
@ -246,11 +246,11 @@ function initRegionalQueue() {
|
|||
var url = $tr.data('actionUrl');
|
||||
var appName = $tr.find('.app-name').text();
|
||||
var fmt = {app: appName};
|
||||
var approved = $this.data('action') == 'approve';
|
||||
var approved = $this.data('action') == 'approve' ? '1' : '';
|
||||
|
||||
$buttons.addClass('disabled');
|
||||
|
||||
$.post(url, {'approved': approved}).success(function() {
|
||||
$.post(url, {'approve': approved}).success(function() {
|
||||
var msg;
|
||||
var classes;
|
||||
if (approved) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from rest_framework.exceptions import ParseError
|
||||
from rest_framework.generics import CreateAPIView, ListAPIView
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.permissions import AllowAny
|
||||
|
||||
from mkt.api.authentication import (RestOAuthAuthentication,
|
||||
RestSharedSecretAuthentication)
|
||||
|
|
Загрузка…
Ссылка в новой задаче