Ticket #13313: common.dev.js.diff

File common.dev.js.diff, 528 bytes (added by fandasson, 12 months ago)

I'm not sure wheter common.js is the right place for this. But I didn't want to put it directly into template.php

Line 
1Index: common.dev.js
2===================================================================
3--- common.dev.js       (revision 20805)
4+++ common.dev.js       (working copy)
5@@ -353,6 +353,15 @@
6                                pageInput.val('1');
7                });
8        }
9+       
10+       if($("#import-upload-form #upload").length){
11+           $("#import-upload-form input:submit").attr("disabled","disabled");
12+               $("#import-upload-form #upload").change(function(){
13+                   if($(this).val().length > 0 ){
14+                               $("#import-upload-form input:submit").removeAttr("disabled");
15+                       }
16+               });
17+       }
18 
19 });
20