Skip to content

Commit

Permalink
fixed sticky dpi issue in chrome when reimporting same file. thx to j…
Browse files Browse the repository at this point in the history
…amie for reporting
  • Loading branch information
Stefan Hechenberger committed Nov 10, 2012
1 parent 8ac58fd commit 8415422
Show file tree
Hide file tree
Showing 591 changed files with 23 additions and 229,716 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
*.pyo
*.DS_Store

other
other
28 changes: 15 additions & 13 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,10 @@ def run_helper():

print "LasaurApp " + VERSION

# if running on beaglebone, setup UART1 (pin muxing)
if args.beaglebone:
### if running on beaglebone, setup (pin muxing) and use UART1
# for details see: http://www.nathandumont.com/node/250
SERIAL_PORT = "/dev/ttyO1"
# echo 0 > /sys/kernel/debug/omap_mux/uart1_txd
fw = file("/sys/kernel/debug/omap_mux/uart1_txd", "w")
fw.write("%X" % (0))
Expand All @@ -455,18 +456,19 @@ def run_helper():
if args.list_serial_devices:
SerialManager.list_devices(BITSPERSECOND)
else:
if args.port:
# (1) get the serial device from the argument list
SERIAL_PORT = args.port
print "Using serial device '"+ SERIAL_PORT +"' from command line."
else:
# (2) get the serial device from the config file
if os.path.isfile(CONFIG_FILE):
fp = open(CONFIG_FILE)
line = fp.readline().strip()
if len(line) > 3:
SERIAL_PORT = line
print "Using serial device '"+ SERIAL_PORT +"' from '" + CONFIG_FILE + "'."
if not SERIAL_PORT:
if args.port:
# (1) get the serial device from the argument list
SERIAL_PORT = args.port
print "Using serial device '"+ SERIAL_PORT +"' from command line."
else:
# (2) get the serial device from the config file
if os.path.isfile(CONFIG_FILE):
fp = open(CONFIG_FILE)
line = fp.readline().strip()
if len(line) > 3:
SERIAL_PORT = line
print "Using serial device '"+ SERIAL_PORT +"' from '" + CONFIG_FILE + "'."

if not SERIAL_PORT:
if args.match:
Expand Down
Empty file modified firmware/tools_osx/avrdude
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions frontend/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
<div class="pull-left">
<form id="svg_upload_form" action="#" onsubmit="return false;">
<input type="file" id="svg_upload_file" name="data" style="visibility:hidden; position:fixed">
<input type="text" id="svg_upload_file_temp" style="display:none">
</form>
</div>
</div>
Expand Down
Empty file modified frontend/css/bootstrap.min.css
100755 → 100644
Empty file.
Empty file modified frontend/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-icons_222222_256x240.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-icons_2e83ff_256x240.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-icons_454545_256x240.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-icons_888888_256x240.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/images/ui-icons_cd0a0a_256x240.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/css/smoothness/jquery-ui-1.8.9.custom.css
100755 → 100644
Empty file.
Empty file modified frontend/img/close.gif
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/error.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/glyphicons-halflings-white.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/glyphicons-halflings.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/notice.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/success.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified frontend/img/warning.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion frontend/js/app_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ $(document).ready(function(){
// $().uxmessage('notice', "Using fallback: file form upload.");
}

// reset file input form field so change event also triggers if
// same file is chosen again (but with different dpi)
$('#svg_upload_file_temp').val($('#svg_upload_file').val())
$('#svg_upload_file').val('')

e.preventDefault();
});

Expand Down Expand Up @@ -251,7 +256,7 @@ $(document).ready(function(){
if (any_assingments == true) {
gcodeparts.push("S0\nG00X0Y0F16000\n%");
var gcodestring = gcodeparts.join('');
var fullpath = $('#svg_upload_file').val();
var fullpath = $('#svg_upload_file_temp').val();
var filename = fullpath.split('\\').pop().split('/').pop();
save_and_add_to_job_queue(filename, gcodestring);
load_into_gcode_widget(gcodestring, filename);
Expand Down
Empty file modified frontend/js/bootstrap.min.js
100755 → 100644
Empty file.
Empty file modified frontend/js/jquery-ui-1.8.9.custom.min.js
100755 → 100644
Empty file.
58 changes: 0 additions & 58 deletions other/app.spec

This file was deleted.

Binary file removed other/dist_linux/lasaurapp
Binary file not shown.
Binary file removed other/dist_osx/LasaurApp.icns
Binary file not shown.
92 changes: 0 additions & 92 deletions other/dist_osx/LasaurApp.platypus

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion other/dist_osx/LasaurApp_PackageMaker.pmdoc/index.xml

This file was deleted.

3 changes: 0 additions & 3 deletions other/dist_osx/platypus.sh

This file was deleted.

3 changes: 0 additions & 3 deletions other/make.py

This file was deleted.

18 changes: 0 additions & 18 deletions other/pyinstaller/.gitattributes

This file was deleted.

69 changes: 0 additions & 69 deletions other/pyinstaller/.gitignore

This file was deleted.

Loading

0 comments on commit 8415422

Please sign in to comment.