Commit 97f55799 by Jason Song Committed by GitHub

Merge pull request #395 from lepdou/search_item

bugfix:filter items not effect text model
parents 08454bde 8fee8ee2
...@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel', ...@@ -345,7 +345,7 @@ directive_module.directive('apollonspanel',
function parseModel2Text(namespace) { function parseModel2Text(namespace) {
if (namespace.items.length == 0) { if (namespace.sourceItems.length == 0) {
namespace.itemCnt = MIN_ROW_SIZE; namespace.itemCnt = MIN_ROW_SIZE;
return ""; return "";
} }
...@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel', ...@@ -360,7 +360,7 @@ directive_module.directive('apollonspanel',
} }
function parseNotPropertiesText(namespace) { function parseNotPropertiesText(namespace) {
var text = namespace.items[0].item.value; var text = namespace.sourceItems[0].item.value;
var lineNum = text.split("\n").length; var lineNum = text.split("\n").length;
namespace.itemCnt = lineNum < MIN_ROW_SIZE ? MIN_ROW_SIZE : lineNum; namespace.itemCnt = lineNum < MIN_ROW_SIZE ? MIN_ROW_SIZE : lineNum;
return text; return text;
...@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel', ...@@ -369,7 +369,7 @@ directive_module.directive('apollonspanel',
function parsePropertiesText(namespace) { function parsePropertiesText(namespace) {
var result = ""; var result = "";
var itemCnt = 0; var itemCnt = 0;
namespace.items.forEach(function (item) { namespace.sourceItems.forEach(function (item) {
//deleted key //deleted key
if (!item.item.dataChangeLastModifiedBy) { if (!item.item.dataChangeLastModifiedBy) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment