Changeset 473 for branches


Ignore:
Timestamp:
03/19/14 16:35:55 (6 years ago)
Author:
jls17
Message:
  • added placeholder note to the filter input control on the fields list of the schema page
  • switching to the fields list on the schema page does set the focus to the filter input control
Location:
branches/work_304
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/doc/DocSchemaDetails.cpp

    r472 r473  
    570570        stringstream outputStrm; 
    571571        AllFieldsJson(outputStrm); 
    572         outputStrm << "<div><span class='clearable'><input type=\"text\" class='data_field' id=\"fieldNameFilter\"/></span><button id=\"execFieldFilter\">Filter</button></div>" << endl; 
     572        outputStrm << "<div><span class='clearable'><input type=\"text\" class='data_field' id=\"fieldNameFilter\" placeholder=\"search by name or id\"/></span><button id=\"execFieldFilter\">Filter</button></div>" << endl; 
    573573        outputStrm << CWebUtil::ImageTag("doc.gif", rootLevel) << "<span id='fieldListFilterResultCount'></span>" << tbl.NumRows() << " fields (" << CWebUtil::Link("data", CPageParams(PAGE_SCHEMA_FIELDS_CSV, &this->schema), "", rootLevel) << ")" << endl; 
    574574        outputStrm << "<div id=\"result\"></div>"; 
  • branches/work_304/res/schema_page.js

    r464 r473  
    9898 
    9999$('document').ready(function() { 
    100         var internal = false; 
    101100    $.address.change(function(event) { 
    102                 if (internal) return; 
    103         $("#MainObjectTabCtrl").tabs("select", window.location.hash); 
    104         if (window.location.hash === '#tab-4' && !schemaWFLInit) { initWorkflowList(); } 
     101                var hash = window.location.hash; 
     102        $("#MainObjectTabCtrl").tabs("select", hash); 
     103                if (hash === '#tab-2') { $("#fieldNameFilter").focus(); } 
     104        if (hash === '#tab-4' && !schemaWFLInit) { initWorkflowList(); } 
    105105    }); 
    106106    $("#MainObjectTabCtrl").bind("tabsselect", function(event, ui) { 
    107                 internal = true; 
    108107        window.location.hash = ui.tab.hash; 
    109                 internal = false; 
    110108        if (ui.tab.hash === '#tab-4' && !schemaWFLInit) { initWorkflowList(); } 
    111109    }); 
Note: See TracChangeset for help on using the changeset viewer.