mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
1be43911b4
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
import App from '../base'
|
|
|
|
export default App.controller('PostGatewayController', function ($scope) {
|
|
$scope.handleGateway = function () {
|
|
const { params } = JSON.parse($('#gateway-data').text())
|
|
params.viaGateway = 'true'
|
|
Object.keys(params).forEach(param => {
|
|
$('<input>')
|
|
.attr({
|
|
type: 'hidden',
|
|
name: param,
|
|
value: params[param],
|
|
})
|
|
.appendTo('#gateway')
|
|
})
|
|
$('#gateway').submit()
|
|
}
|
|
})
|