Changeset 1344072
- Timestamp:
- 02/05/2016 03:00:02 PM (10 years ago)
- Location:
- custom-searchable-data-entry-system/trunk/js
- Files:
-
- 2 edited
-
sds-admin-tabs.js (modified) (2 diffs)
-
sds-data-storage.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-searchable-data-entry-system/trunk/js/sds-admin-tabs.js
r1269644 r1344072 1 1 /** 2 * tabs of formin admin panel2 * tabsin admin panel 3 3 */ 4 4 jQuery(document).ready(function($) { … … 6 6 $("input[class^=sds_download_table_csv_]").click(function(){ 7 7 //alert("clicked"); 8 $(".sds_update_link").detach(); 9 $(".sds_del_link").detach(); 8 10 var currentTable = $('#'+$(this).attr('class')); 9 11 currentTable.tableExport({type:'csv',escape:'false',tableName:'yourTableName'}); 10 //alert(($('#'+$(this).attr('class'))).attr('id')); 11 //alert($(this).attr('class')); 12 $(".sds_refresh_page").html(sds_object.refresh); 12 13 }); 13 14 -
custom-searchable-data-entry-system/trunk/js/sds-data-storage.js
r1269644 r1344072 5 5 6 6 $(".field_ext").hide(); 7 $(".file_upload_guide").hide(); 7 8 8 9 $(".ghazale_sds_field_type").change(function(){ … … 11 12 case"Drop Down": 12 13 $(".field_ext").slideDown(); 14 $(".file_upload_guide").slideUp(); 13 15 break; 14 16 case "Multiple Choice": 15 17 $(".field_ext").slideDown(); 18 $(".file_upload_guide").slideUp(); 19 break; 20 case "File Upload": 21 $(".file_upload_guide").slideDown().html("File Upload is intended for image uploads only. <i>Supported formats are: png, jpg, jpeg, gif, bmp</i><br> If you wish to show 'Links', use URL field type instead."); 16 22 break; 17 23 default: 24 $(".file_upload_guide").slideUp(); 18 25 $(".field_ext").slideUp(); 19 26 break; … … 27 34 } 28 35 36 if($(".ghazale_sds_field_type").find("option:selected").text() == "File Upload"){ 37 $(".file_upload_guide").show(); 38 } 39 29 40 });
Note: See TracChangeset
for help on using the changeset viewer.