Show More
@@ -74,7 +74,7 $(document).ready(function () { | |||||
74 |
|
74 | |||
75 | // bound the upload method to the on change of the file select list |
|
75 | // bound the upload method to the on change of the file select list | |
76 | $("#alternate_upload").change(function (event){ |
|
76 | $("#alternate_upload").change(function (event){ | |
77 |
IPython.notebook_list.hand |
|
77 | IPython.notebook_list.handleFilesUpload(event,'form'); | |
78 | }); |
|
78 | }); | |
79 |
|
79 | |||
80 | // set hash on tab click |
|
80 | // set hash on tab click |
@@ -47,12 +47,12 var IPython = (function (IPython) { | |||||
47 | return false; |
|
47 | return false; | |
48 | }); |
|
48 | }); | |
49 | this.element.bind('drop', function(event){ |
|
49 | this.element.bind('drop', function(event){ | |
50 |
that.hand |
|
50 | that.handleFilesUpload(event,'drop'); | |
51 | return false; |
|
51 | return false; | |
52 | }); |
|
52 | }); | |
53 | }; |
|
53 | }; | |
54 |
|
54 | |||
55 |
NotebookList.prototype.hand |
|
55 | NotebookList.prototype.handleFilesUpload = function(event, dropOrForm) { | |
56 | var that = this; |
|
56 | var that = this; | |
57 | var files; |
|
57 | var files; | |
58 | if(dropOrForm =='drop'){ |
|
58 | if(dropOrForm =='drop'){ |
General Comments 0
You need to be logged in to leave comments.
Login now