Update app.py
Browse files
app.py
CHANGED
|
@@ -1834,11 +1834,10 @@ def add_data_gc_in():
|
|
| 1834 |
|
| 1835 |
|
| 1836 |
|
| 1837 |
-
@app.route('/tl_help.js')
|
| 1838 |
-
def serve_vk_bridge():
|
| 1839 |
|
| 1840 |
-
''
|
| 1841 |
-
|
|
|
|
| 1842 |
function mySuccessFunction(form) {
|
| 1843 |
if (!form) return;
|
| 1844 |
if (form instanceof jQuery) {
|
|
@@ -1922,7 +1921,7 @@ function us_sendFormAfterSuccess() {
|
|
| 1922 |
});
|
| 1923 |
});
|
| 1924 |
}
|
| 1925 |
-
|
| 1926 |
return Response(script_content, mimetype='application/javascript')
|
| 1927 |
|
| 1928 |
|
|
@@ -1937,13 +1936,6 @@ function us_sendFormAfterSuccess() {
|
|
| 1937 |
|
| 1938 |
|
| 1939 |
|
| 1940 |
-
|
| 1941 |
-
|
| 1942 |
-
|
| 1943 |
-
|
| 1944 |
-
|
| 1945 |
-
|
| 1946 |
-
|
| 1947 |
|
| 1948 |
|
| 1949 |
|
|
|
|
| 1834 |
|
| 1835 |
|
| 1836 |
|
|
|
|
|
|
|
| 1837 |
|
| 1838 |
+
@app.route('/vk-bridge.js')
|
| 1839 |
+
def serve_vk_bridge():
|
| 1840 |
+
script_content = """
|
| 1841 |
function mySuccessFunction(form) {
|
| 1842 |
if (!form) return;
|
| 1843 |
if (form instanceof jQuery) {
|
|
|
|
| 1921 |
});
|
| 1922 |
});
|
| 1923 |
}
|
| 1924 |
+
"""
|
| 1925 |
return Response(script_content, mimetype='application/javascript')
|
| 1926 |
|
| 1927 |
|
|
|
|
| 1936 |
|
| 1937 |
|
| 1938 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1939 |
|
| 1940 |
|
| 1941 |
|