mirror of
https://github.com/sismics/docs.git
synced 2024-11-26 07:34:55 +01:00
Button to clear the search field, bug fix on share modal
This commit is contained in:
parent
20c2b0460b
commit
c0a963e845
@ -1,3 +1,2 @@
|
|||||||
- Automatic backup system using Quartz (server)
|
- Automatic backup system using Quartz (server)
|
||||||
- Handle error while uploading a file (client)
|
- Handle error while uploading a file (client)
|
||||||
- "X" button next to the search field to clear it (client)
|
|
@ -0,0 +1,11 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Document modal share controller.
|
||||||
|
*/
|
||||||
|
angular.module('docs').controller('DocumentModalShare', function ($scope, $modalInstance) {
|
||||||
|
$scope.name = '';
|
||||||
|
$scope.close = function (name) {
|
||||||
|
$modalInstance.close(name);
|
||||||
|
}
|
||||||
|
});
|
@ -92,12 +92,7 @@ angular.module('docs').controller('DocumentView', function ($scope, $state, $sta
|
|||||||
$scope.share = function () {
|
$scope.share = function () {
|
||||||
$modal.open({
|
$modal.open({
|
||||||
templateUrl: 'partial/docs/document.share.html',
|
templateUrl: 'partial/docs/document.share.html',
|
||||||
controller: function ($scope, $modalInstance) {
|
controller: 'DocumentModalShare'
|
||||||
$scope.name = '';
|
|
||||||
$scope.close = function (name) {
|
|
||||||
$modalInstance.close(name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).result.then(function (name) {
|
}).result.then(function (name) {
|
||||||
if (name == null) {
|
if (name == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
<script src="app/docs/controller/DocumentDefault.js" type="text/javascript"></script>
|
<script src="app/docs/controller/DocumentDefault.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentEdit.js" type="text/javascript"></script>
|
<script src="app/docs/controller/DocumentEdit.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/DocumentView.js" type="text/javascript"></script>
|
||||||
|
<script src="app/docs/controller/DocumentModalShare.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/FileView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/FileView.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/FileModalView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/FileModalView.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Login.js" type="text/javascript"></script>
|
<script src="app/docs/controller/Login.js" type="text/javascript"></script>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">
|
<span class="input-group-addon">
|
||||||
<span class="glyphicon glyphicon-search"
|
<span class="glyphicon glyphicon glyphicon-info-sign"
|
||||||
tooltip-placement="bottom"
|
tooltip-placement="bottom"
|
||||||
tooltip-html-unsafe="before:2012-05<br/>
|
tooltip-html-unsafe="before:2012-05<br/>
|
||||||
after:2012-05<br/>
|
after:2012-05<br/>
|
||||||
@ -18,6 +18,10 @@
|
|||||||
lang:fra"></span>
|
lang:fra"></span>
|
||||||
</span>
|
</span>
|
||||||
<input type="search" class="form-control" placeholder="Search" ng-model="search" />
|
<input type="search" class="form-control" placeholder="Search" ng-model="search" />
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<span class="glyphicon glyphicon-search" ng-show="search.length == 0"></span>
|
||||||
|
<span class="glyphicon glyphicon-remove" ng-show="search.length > 0" ng-click="search = ''"></span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="row table table-striped table-hover table-documents">
|
<table class="row table table-striped table-hover table-documents">
|
||||||
|
Loading…
Reference in New Issue
Block a user