From: Enlightenment S. <no-...@en...> - 2012-10-11 19:45:32
|
Log: EasyUI: Twitter: Go back to search list when saving a search Author: acidx Date: 2012-10-11 12:45:25 -0700 (Thu, 11 Oct 2012) New Revision: 77908 Trac: http://trac.enlightenment.org/e/changeset/77908 Modified: trunk/PROTO/easyui/twitter.js Modified: trunk/PROTO/easyui/twitter.js =================================================================== --- trunk/PROTO/easyui/twitter.js 2012-10-11 19:45:11 UTC (rev 77907) +++ trunk/PROTO/easyui/twitter.js 2012-10-11 19:45:25 UTC (rev 77908) @@ -314,7 +314,8 @@ this.pushController(new TimelineController(new SearchTimelineModel(text), 'search', text)); }, saveSearchQuery: function(text) { - this.parent.appendQuery(text); + this.parent.saveSearchQuery(text); + this.popController(); }, title: 'Search', icon: 'search' @@ -342,7 +343,7 @@ if(menuItem == 'Remove') this.model.deleteItemAtIndex(index); }, - appendQuery: function(text) { + saveSearchQuery: function(text) { this.model.insert({ text: text }); } }); |