Plugin Directory

Changeset 1344072


Ignore:
Timestamp:
02/05/2016 03:00:02 PM (10 years ago)
Author:
ghazale
Message:

updating js files for new version of CSDES

Location:
custom-searchable-data-entry-system/trunk/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-searchable-data-entry-system/trunk/js/sds-admin-tabs.js

    r1269644 r1344072  
    11/**
    2  * tabs of form in admin panel
     2 * tabsin admin panel
    33 */
    44jQuery(document).ready(function($) {
     
    66        $("input[class^=sds_download_table_csv_]").click(function(){
    77            //alert("clicked");
     8            $(".sds_update_link").detach();
     9            $(".sds_del_link").detach();
    810            var currentTable = $('#'+$(this).attr('class'));
    911            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);
    1213        });
    1314
  • custom-searchable-data-entry-system/trunk/js/sds-data-storage.js

    r1269644 r1344072  
    55
    66   $(".field_ext").hide();
     7    $(".file_upload_guide").hide();
    78
    89    $(".ghazale_sds_field_type").change(function(){
     
    1112            case"Drop Down":
    1213                $(".field_ext").slideDown();
     14                $(".file_upload_guide").slideUp();
    1315                break;
    1416            case "Multiple Choice":
    1517                $(".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.");
    1622                break;
    1723            default:
     24                $(".file_upload_guide").slideUp();
    1825                $(".field_ext").slideUp();
    1926                break;
     
    2734    }
    2835
     36    if($(".ghazale_sds_field_type").find("option:selected").text() == "File Upload"){
     37        $(".file_upload_guide").show();
     38    }
     39
    2940});
Note: See TracChangeset for help on using the changeset viewer.