work in progress
[qcg-portal.git] / qcg / templates / qcg / job_submit.html
index 83e9025..b25ba06 100644 (file)
@@ -34,7 +34,7 @@
                 return res;
             }
 
-            $('#id_master_file,#id_executable,#id_input,#id_preprocess_script,#id_postprocess_script').before(function() {
+            $('#id_master_file,#id_pdb_file,#id_executable,#id_input,#id_preprocess_script,#id_postprocess_script').before(function() {
                 var target = this;
                 return gridftpButton.clone().click(function() {
                     $('#select-btn').off().click(function() {
@@ -77,7 +77,7 @@
                 });
             }).wrap('<div style="margin-right: 80px"></div>');
 
-            $('#id_application').selectize();
+            $('#id_application,#id_force_field').selectize();
             $('#id_arguments,#id_properties,#id_native').selectize({
                 plugins: ['remove_button'],
                 create: true,
                     }
                 }
             });
-            $('#id_modules,#id_hosts,#id_master_file,#id_executable,#id_input,#id_stage_in,#id_preprocess_script,#id_postprocess_script').selectize({
+
+            $('#id_modules,#id_hosts,#id_pdb_file,#id_master_file,#id_executable,#id_input,#id_stage_in,#id_preprocess_script,#id_postprocess_script').selectize({
                 plugins: ['remove_button']
             });
 
+            $('#id_sequence').on("click keyup", function(){
+                $(this).val($(this).val().toUpperCase());
+            });
+            
             // hide delete checkbox in empty env form
             $('#env-form-empty').find('div.form-group:last-of-type').hide();
             $('#env-controls').find('> div').formset({
 
             $('#gridftp').one('show.bs.modal', function() {
                 filex.initialLoad();
+                $(this).find('.modal-body').css('height', window.innerHeight - 200 + 'px');
             });
 
             $('#template').on('show.bs.modal', function() {