Browse Source

Save requests to the right place

master
Chris Smith 12 years ago
parent
commit
7e09318d36
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      .htaccess
  2. 1
    1
      res/js/viewer.js

+ 1
- 0
.htaccess View File

1
 RewriteEngine On
1
 RewriteEngine On
2
 RewriteRule ^/?res/data/layouts/([0-9]+).js http://backend.layoutviewer.co.uk/getLayout/$1.js [P]
2
 RewriteRule ^/?res/data/layouts/([0-9]+).js http://backend.layoutviewer.co.uk/getLayout/$1.js [P]
3
+RewriteRule ^/?res/data/layouts/new http://backend.layoutviewer.co.uk/saveLayout [P]

+ 1
- 1
res/js/viewer.js View File

171
 
171
 
172
   $.ajax({
172
   $.ajax({
173
    type: 'POST',
173
    type: 'POST',
174
-   url: 'data/layouts/new',
174
+   url: 'res/data/layouts/new',
175
    data: JSON.stringify(layout),
175
    data: JSON.stringify(layout),
176
    success: function(res) {
176
    success: function(res) {
177
     var url = window.location.href + "?id=" + res;
177
     var url = window.location.href + "?id=" + res;

Loading…
Cancel
Save