/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/js/script.js

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-07 08:05:14 UTC
  • mfrom: (53.2.2 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130507080514-u53zto672m0t19wl
merded the new salting stuff for the user passwords and stuff...

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
                // The name of the $_FILES entry:
8
8
                paramname:'files',
9
9
                
10
 
                url: '../../../uploadfile/'+$('input[name="cid"]').val()+'/'+$('input[name="example"]').val()+'/'+$('input[name="page"]').val(),
 
10
                url: '../../../../uploadfile/'+$('input[name="cid"]').val()+'/'+$('input[name="category"]').val()+'/'+$('input[name="subcategory"]').val()+'/'+$('input[name="example"]').val(),
11
11
                
12
12
                uploadFinished:function(i,file,response){
13
13
                        $('.progress').addClass('done');
17
17
                        html += '<input type="hidden" value="'+file.name+'">';
18
18
                        html += '<label>Language</label><input type="text" name="'+file.name.replace(/\s/g,"")+'_lang" onChange="fileupdated()">';
19
19
                        html += '<label>Type</label><input type="text"  name="'+file.name.replace(/\s/g,"")+'_type" onChange="fileupdated()">';
 
20
                        html += '<label>Column</label><select name="'+file.name.replace(/\s/g,"")+'_type" onChange="fileupdated()"><option>1</option><option selected>2</option></select>';
20
21
                        html += "</div>";
21
22
                        $('#filelist').append(html);
22
23
 
60
61
        var fileinfo = [];
61
62
        $('.file').each(function() {
62
63
                inputs = $(this).find("input");
63
 
                fileinfo.push({"filename":inputs.get(0).value, "lang": inputs.get(1).value, "type": inputs.get(2).value});
 
64
                selects = $(this).find("select");
 
65
                fileinfo.push({"filename":inputs.get(0).value, "lang": inputs.get(1).value, "type": inputs.get(2).value, "columnNr": selects.get(0).value});
64
66
        });
65
67
        $("input[name='files']").val(JSON.stringify(fileinfo));
66
68
}
 
 
b'\\ No newline at end of file'