Permalink
Browse files

Put the finishing touches of requirejs.

  • Loading branch information...
1 parent 222e933 commit eccf94d08ff364fefe60917e0a09cf6dec0c8b74 @maxolasersquad committed Apr 4, 2014
Showing with 5 additions and 8 deletions.
  1. +5 −5 static/js/inventory.js
  2. +0 −2 templates/inventory/index.html
  3. +0 −1 templates/register/index.html
View
@@ -28,12 +28,12 @@ require(['jquery'], function($) {
$(this).click(function() {
toggle_taxable($(this).data('upc'));
});
-
- $('.new-inventory').each(function() {
- $(this).blur(function() {
- new_inventory();
+ $('.new-inventory').each(function() {
+ $(this).blur(function() {
+ new_inventory();
+ });
});
- }); });
+ });
function edit_vendor(upc) {
if ($('#' + upc + '_vendor > input').length == 0) {
@@ -20,7 +20,6 @@
<html>
<head>
<title>Orthosie Inventory Management</title>
- <script type="text/javascript" src="/static/js/jquery.js"></script>
<script data-main="/static/js/inventory.js" src="/static/js/require.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/font-awesome.css">
@@ -65,6 +64,5 @@
</tr>
</tbody>
</table>
- <span id="add_inventory" class="glyphicon glyphicon-plus" onclick='Orthosie.inventory.new_inventory_row();'></span>
</body>
</html>
@@ -20,7 +20,6 @@
<html>
<head>
<title>Orthosie Cash Register</title>
- <script type="text/javascript" src="/static/js/jquery.js"></script>
<script data-main="/static/js/register.js" src="/static/js/require.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/font-awesome.css">

0 comments on commit eccf94d

Please sign in to comment.