improvement done while working with the software.
This commit is contained in:
1 parent
96ed18787a
commit
741ec3f40c
4 files changed
+21
-13
No files matched your search
@@ -97,13 +97,13 @@ root.controllers.controller('documentCtrl', ['$scope', '$routeParams', '$http',
|
||||
$scope.previousDocumentUrl = () ->
|
||||
url = "#/#{ $routeParams.server }/#{ $routeParams.database }/#{ $routeParams.collection }/idx/#{$scope.idx - 1}"
|
||||
if $routeParams.query
|
||||
url = "/query/#{$routeParams.query}"
|
||||
url = "#{url}/query/#{$routeParams.query}"
|
||||
return url
|
||||
|
||||
$scope.nextDocumentUrl = () ->
|
||||
url = "#/#{ $routeParams.server }/#{ $routeParams.database }/#{ $routeParams.collection }/idx/#{$scope.idx + 1}"
|
||||
if $routeParams.query
|
||||
url = "/query/#{$routeParams.query}"
|
||||
url = "#{url}/query/#{$routeParams.query}"
|
||||
return url
|
||||
|
||||
$scope.hasPreviousDocument = () ->
|
||||
|
||||
@@ -6,8 +6,12 @@ root.filters.filter 'escape', () ->
|
||||
|
||||
root.filters.filter 'replaceAllCommasBySpaces', () ->
|
||||
return (text) ->
|
||||
return text.replace(new RegExp(",","g"), " ")
|
||||
return text.replace(new RegExp(",","g"), " ")
|
||||
|
||||
root.filters.filter 'niceJSON', () ->
|
||||
return (obj) ->
|
||||
return JSON.stringify(obj, null, 4);
|
||||
return JSON.stringify(obj, null, 4);
|
||||
|
||||
root.filters.filter 'replaceReturnByBreak', () ->
|
||||
return (text) ->
|
||||
return text.replace(new RegExp("\n","g"), "<br>")
|
||||
Reference in new issue
Block a user