fh-wfm-message
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -20,5 +20,5 @@ var ngModule; | ||
'</md-toolbar>\n' + | ||
'<div class="wfm-maincol-scroll">\n' + | ||
'\n' + | ||
'<form name="messageForm" ng-submit="ctrl.done(messageForm.$valid)" novalidate layout-padding layout-margin>\n' + | ||
'\n' + | ||
' <!--\n' + | ||
@@ -30,4 +30,2 @@ ' <md-input-container>\n' + | ||
' -->\n' + | ||
'\n' + | ||
'\n' + | ||
'<div>\n' + | ||
@@ -68,3 +66,5 @@ ' <md-input-container class="md-block" ng-class="{ \'has-error\' : messageForm.receiver.$invalid && !messageForm.receiver.$pristine }">\n' + | ||
'</form>\n' + | ||
'\n' + | ||
'</div>\n' + | ||
''); | ||
}]); |
@@ -23,5 +23,5 @@ var ngModule; | ||
'\n' + | ||
'<form action="#" class="persistent-search">\n' + | ||
'<form action="#" class="persistent-search" hide-xs hide-sm>\n' + | ||
' <label for="search"><i class="material-icons">search</i></label>\n' + | ||
' <input type="text" id="search" placeholder="Search">\n' + | ||
' <input type="text" id="search" placeholder="Search" ng-model="searchValue" ng-change="ctrl.applyFilter(searchValue)">\n' + | ||
'</form>\n' + | ||
@@ -28,0 +28,0 @@ '\n' + |
@@ -34,2 +34,10 @@ /** | ||
}; | ||
self.applyFilter = function(term) { | ||
term = term.toLowerCase(); | ||
self.list = $scope.list.filter(function(message) { | ||
return String(message.sender.name).toLowerCase().indexOf(term) !== -1 | ||
|| String(message.subject).toLowerCase().indexOf(term) !== -1; | ||
}); | ||
}; | ||
} | ||
@@ -36,0 +44,0 @@ , controllerAs: 'ctrl' |
{ | ||
"name": "fh-wfm-message", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "An message module for WFM", | ||
@@ -5,0 +5,0 @@ "main": "lib/angular/message-ng.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28128
509