Permalink
Browse files

filter values merken bei einem SeitenWechsel

  • Loading branch information...
Stephan
Stephan committed Dec 11, 2012
1 parent 0750d0f commit ddd3c6cf3060aa666e22e4acb0630adb01327b03
Showing with 16 additions and 9 deletions.
  1. +14 −7 app/modules/localeEdit/views.js
  2. +2 −2 app/templates/localeedit/filter.html
@@ -65,18 +65,20 @@ function(app, LocaleEdit, Backbone) {
},
LangSearch: function(e){
- var keySearchterm = $("#langSearchTask").val();
- mediator.Publish('langSearch', keySearchterm);
+ this.langSearchterm = $("#langSearchTask").val();
+
+ mediator.Publish('langSearch', this.langSearchterm);
return this;
},
ValueSearch: function(e){
- var keySearchterm = $("#valueSearchTask").val();
- mediator.Publish('valueSearch', keySearchterm);
+ this.valueSearchterm = $("#valueSearchTask").val();
+ mediator.Publish('valueSearch', this.valueSearchterm);
return this;
},
KeySearch: function(e){
- var keySearchterm = $("#keySearchTask").val();
- mediator.Publish('keySearch', keySearchterm);
+ this.keySearchterm = $("#keySearchTask").val();
+
+ mediator.Publish('keySearch', this.keySearchterm);
return this;
},
pageChanged : function(page){
@@ -90,12 +92,17 @@ function(app, LocaleEdit, Backbone) {
}).attr('selected', true);
$('#SelElementsPerPage').val(this.elementsPerPage);
+
+
},
data: function() {
return {
currentpage: this.currentPage,
elementsPerPage: this.elementsPerPage,
- keyCount: this.keyCount
+ keyCount: this.keyCount,
+ keySearchterm: this.keySearchterm,
+ valueSearchterm: this.valueSearchterm,
+ langSearchterm: this.langSearchterm
};
},
initialize: function(){
@@ -4,8 +4,8 @@
<div class="pull-left">
<input id="keySearchTask" class="input-medium" type="text" placeholder="KEY" value='<%= keySearchterm %>'></input>
- <input id="langSearchTask" class="input-medium" type="text" placeholder="LANGUAGE"></input>
- <input id="valueSearchTask" class="input-medium" type="text" placeholder="VALUE"></input>
+ <input id="langSearchTask" class="input-medium" type="text" placeholder="LANGUAGE" value='<%= langSearchterm %>'></input>
+ <input id="valueSearchTask" class="input-medium" type="text" placeholder="VALUE" value='<%= valueSearchterm %>'></input>
</div>
<div class="pull-right filter">

0 comments on commit ddd3c6c

Please sign in to comment.