diff --git a/src/main/webapp/project.html b/src/main/webapp/project.html index 8f936c916..c3457eb5a 100644 --- a/src/main/webapp/project.html +++ b/src/main/webapp/project.html @@ -1 +1 @@ - Gridworks
starting up ...
\ No newline at end of file + Gridworks
starting up ...
\ No newline at end of file diff --git a/src/main/webapp/scripts/dialogs/recon-dialog.js b/src/main/webapp/scripts/dialogs/recon-dialog.js index 559792512..a8644e9d9 100644 --- a/src/main/webapp/scripts/dialogs/recon-dialog.js +++ b/src/main/webapp/scripts/dialogs/recon-dialog.js @@ -171,8 +171,10 @@ ReconDialog.prototype._populateDialog = function() { }; ReconDialog.prototype._wireEvents = function() { + var self = this; + this._elmts.heuristicTypeInput - .suggest({ type : '/type/type' }) + .suggestT({ type : '/type/type' }) .bind("fb-select", function(e, data) { $('input[name="recon-dialog-type-choice"][value=""]').attr("checked", "true"); diff --git a/src/main/webapp/scripts/protograph/schema-alignment-ui-node.js b/src/main/webapp/scripts/protograph/schema-alignment-ui-node.js index 6376e9bd0..b0be39bc3 100644 --- a/src/main/webapp/scripts/protograph/schema-alignment-ui-node.js +++ b/src/main/webapp/scripts/protograph/schema-alignment-ui-node.js @@ -435,7 +435,7 @@ SchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function() { elmts.anonymousNodeTypeInput .bind("focus", function() { elmts.radioNodeTypeAnonymous[0].checked = true; }) - .suggest({ type: "/type/type" }); + .suggestT({ type: "/type/type" }); elmts.topicNodeTypeInput .bind("focus", function() { elmts.radioNodeTypeTopic[0].checked = true; }) @@ -459,7 +459,7 @@ SchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function() { elmts.radioNodeTypeCellAs[0].checked = true; elmts.radioNodeTypeCellAsTopic[0].checked = true; }) - .suggest({ type: "/type/type" }); + .suggestT({ type: "/type/type" }); elmts.cellAsValueTypeSelect .bind("focus", function() { diff --git a/src/main/webapp/scripts/util/property-suggest.js b/src/main/webapp/scripts/util/custom-suggest.js similarity index 61% rename from src/main/webapp/scripts/util/property-suggest.js rename to src/main/webapp/scripts/util/custom-suggest.js index de3ea42c3..6a8fcbb70 100644 --- a/src/main/webapp/scripts/util/property-suggest.js +++ b/src/main/webapp/scripts/util/custom-suggest.js @@ -3,6 +3,9 @@ response: $.suggest.suggest.prototype.response }; + /* + * Property suggest + */ $.suggest( "suggestP", $.extend( @@ -60,6 +63,52 @@ true, {}, $.suggest.suggest.defaults, { + css: { pane: "fbs-pane fbs-pane-property" } + } + ) + } + ); + + /* + * Type suggest + */ + $.suggest( + "suggestT", + $.extend( + true, + {}, + $.suggest.suggest.prototype, + { + create_item: function(data, response_data) { + var css = this.options.css; + + var li = $("
  • ").addClass(css.item); + + var name = $("
    ") + .addClass(css.item_name) + .append( + $("