Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix script launcher behind webroot

  • Loading branch information...
commit 2203a70948c72d4c0692c62819a900642d970ecf 1 parent 9f0af9b
@N3MIS15 N3MIS15 authored
Showing with 3 additions and 6 deletions.
  1. +2 −5 modules/script_launcher.py
  2. +1 −1  static/js/index.js
View
7 modules/script_launcher.py
@@ -1,14 +1,11 @@
from flask import Flask, jsonify, render_template, request
import os, platform, ctypes, subprocess, datetime
-from Maraschino import app
-from maraschino.noneditable import *
from maraschino.tools import *
-from maraschino import logger as logger
+from maraschino import app, logger
from maraschino.database import db_session
-
from maraschino.models import Script
-
+import maraschino
@app.route('/xhr/script_launcher/')
View
2  static/js/index.js
@@ -3025,7 +3025,7 @@ $(document).ready(function() {
});
$(document).on('click', '#script_launcher .script', function() {
- $.get('/xhr/script_launcher/start_script/' + $(this).data('id'), function(data) {
+ $.get(WEBROOT + '/xhr/script_launcher/start_script/' + $(this).data('id'), function(data) {
$('#script_launcher').replaceWith(data);
});
});

0 comments on commit 2203a70

Please sign in to comment.
Something went wrong with that request. Please try again.