Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
5346a55b
Commit
5346a55b
authored
May 25, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #223 from lepdou/optimization
优化portal细节
parents
41ca65f5
ea55ddc1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
14 deletions
+2
-14
config.html
apollo-portal/src/main/resources/static/config.html
+1
-4
common-style.css
...-portal/src/main/resources/static/styles/common-style.css
+1
-1
angular-bootstrap-confirm.min.js
...es/static/vendor/angular/angular-bootstrap-confirm.min.js
+0
-9
No files found.
apollo-portal/src/main/resources/static/config.html
View file @
5346a55b
...
...
@@ -454,7 +454,7 @@
<textarea
type=
"text"
class=
"form-control"
rows=
"6"
ng-model=
"item.value"
ng-required=
"true"
ng-show=
"tableViewOperType != 'retrieve'"
>
</textarea>
<
span
ng-bind=
"item.value"
ng-show=
"tableViewOperType == 'retrieve'"
></span
>
<
p
ng-bind=
"item.value"
ng-show=
"tableViewOperType == 'retrieve'"
></p
>
</div>
</div>
<div
class=
"form-group"
ng-show=
"tableViewOperType == 'retrieve'"
>
...
...
@@ -517,9 +517,6 @@
<script
src=
"vendor/angular/angular-resource.min.js"
></script>
<script
src=
"vendor/angular/angular-toastr-1.4.1.tpls.min.js"
></script>
<script
src=
"vendor/angular/loading-bar.min.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-sanitize.min.js"
></script>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/1.3.2/ui-bootstrap-tpls.min.js"
></script>
<script
src=
"vendor/angular/angular-bootstrap-confirm.min.js"
></script>
<!-- bootstrap.js -->
<script
src=
"vendor/bootstrap/js/bootstrap.min.js"
type=
"text/javascript"
></script>
...
...
apollo-portal/src/main/resources/static/styles/common-style.css
View file @
5346a55b
...
...
@@ -15,7 +15,7 @@ a {
cursor
:
pointer
;
}
td
{
p
td
span
{
word-wrap
:
break-word
;
word-break
:
break-all
;
}
...
...
apollo-portal/src/main/resources/static/vendor/angular/angular-bootstrap-confirm.min.js
deleted
100644 → 0
View file @
41ca65f5
/**
* angular-bootstrap-confirm - Displays a bootstrap confirmation popover when clicking the given element.
* @version v2.1.0
* @link https://github.com/mattlewis92/angular-bootstrap-confirm
* @license MIT
*/
!
function
(
n
,
t
){
"object"
==
typeof
exports
&&
"object"
==
typeof
module
?
module
.
exports
=
t
(
require
(
"angular"
),
require
(
"angular-sanitize"
)):
"function"
==
typeof
define
&&
define
.
amd
?
define
([
"angular"
,
"angular-sanitize"
],
t
):
"object"
==
typeof
exports
?
exports
.
angularBootstrapConfirmModuleName
=
t
(
require
(
"angular"
),
require
(
"angular-sanitize"
)):
n
.
angularBootstrapConfirmModuleName
=
t
(
n
.
angular
,
n
[
"angular-sanitize"
])}(
this
,
function
(
n
,
t
){
return
function
(
n
){
function
t
(
o
){
if
(
e
[
o
])
return
e
[
o
].
exports
;
var
i
=
e
[
o
]
=
{
exports
:{},
id
:
o
,
loaded
:
!
1
};
return
n
[
o
].
call
(
i
.
exports
,
i
,
i
.
exports
,
t
),
i
.
loaded
=!
0
,
i
.
exports
}
var
e
=
{};
return
t
.
m
=
n
,
t
.
c
=
e
,
t
.
p
=
""
,
t
(
0
)}([
function
(
n
,
t
,
e
){
"use strict"
;
var
o
=
e
(
1
),
i
=
e
(
2
);
e
(
3
),
e
(
1
);
var
s
=
"angular-bootstrap-confirm.html"
;
n
.
exports
=
o
.
module
(
"mwl.confirm"
,[
"ngSanitize"
,
"ui.bootstrap.position"
]).
run
([
"$templateCache"
,
function
(
n
){
n
.
put
(
s
,
i
)}]).
controller
(
"PopoverConfirmCtrl"
,[
"$scope"
,
"$rootScope"
,
"$element"
,
"$attrs"
,
"$compile"
,
"$document"
,
"$window"
,
"$timeout"
,
"$injector"
,
"$templateRequest"
,
"$parse"
,
"confirmationPopoverDefaults"
,
function
(
n
,
t
,
e
,
i
,
s
,
r
,
a
,
c
,
l
,
u
,
p
,
f
){
function
m
(
t
,
e
){
o
.
isDefined
(
t
)
&&
p
(
t
).
assign
(
n
,
e
)}
function
d
(
t
,
e
){
return
o
.
isDefined
(
t
)?
p
(
t
)(
n
):
e
}
function
v
(){
var
n
=
y
.
positionElements
(
e
,
x
.
popover
,
i
.
placement
||
x
.
defaults
.
placement
,
!
0
);
n
.
top
+=
"px"
,
n
.
left
+=
"px"
,
x
.
popover
.
css
(
n
)}
function
b
(){
var
n
=
i
.
focusButton
||
x
.
defaults
.
focusButton
;
if
(
n
){
var
t
=
n
+
"-button"
;
x
.
popover
[
0
].
getElementsByClassName
(
t
)[
0
].
focus
()}}
function
$
(){
x
.
isVisible
||
d
(
i
.
isDisabled
,
!
1
)
||
(
x
.
popover
.
css
({
display
:
"block"
}),
v
(),
b
(),
x
.
isVisible
=!
0
,
m
(
i
.
isOpen
,
!
0
))}
function
g
(){
x
.
isVisible
&&
(
x
.
popover
.
css
({
display
:
"none"
}),
x
.
isVisible
=!
1
,
m
(
i
.
isOpen
,
!
1
))}
function
h
(){
x
.
isVisible
?
g
():
$
(),
n
.
$apply
()}
function
C
(
t
){
!
x
.
isVisible
||
x
.
popover
[
0
].
contains
(
t
.
target
)
||
e
[
0
].
contains
(
t
.
target
)
||
(
g
(),
n
.
$apply
())}
var
x
=
this
;
x
.
defaults
=
f
,
x
.
$attrs
=
i
;
var
B
=
l
.
has
(
"$uibPosition"
)?
"$uibPosition"
:
"$position"
,
y
=
l
.
get
(
B
),
T
=
i
.
templateUrl
||
f
.
templateUrl
,
P
=
t
.
$new
(
!
0
);
P
.
vm
=
x
,
u
(
T
).
then
(
function
(
n
){
x
.
popover
=
o
.
element
(
n
),
x
.
popover
.
css
(
"display"
,
"none"
),
s
(
x
.
popover
)(
P
),
r
.
find
(
"body"
).
append
(
x
.
popover
)}),
x
.
isVisible
=!
1
,
x
.
showPopover
=
$
,
x
.
hidePopover
=
g
,
x
.
togglePopover
=
h
,
x
.
onConfirm
=
function
(){
d
(
i
.
onConfirm
)},
x
.
onCancel
=
function
(){
d
(
i
.
onCancel
)},
n
.
$watch
(
i
.
isOpen
,
function
(
n
){
c
(
function
(){
n
?
$
():
g
()})}),
e
.
bind
(
"click"
,
h
),
a
.
addEventListener
(
"resize"
,
v
),
r
.
bind
(
"click"
,
C
),
r
.
bind
(
"touchend"
,
C
),
n
.
$on
(
"$destroy"
,
function
(){
x
.
popover
.
remove
(),
e
.
unbind
(
"click"
,
h
),
a
.
removeEventListener
(
"resize"
,
v
),
r
.
unbind
(
"click"
,
C
),
r
.
unbind
(
"touchend"
,
C
),
P
.
$destroy
()})}]).
directive
(
"mwlConfirm"
,
function
(){
return
{
restrict
:
"A"
,
controller
:
"PopoverConfirmCtrl"
}}).
value
(
"confirmationPopoverDefaults"
,{
confirmText
:
"Confirm"
,
cancelText
:
"Cancel"
,
confirmButtonType
:
"success"
,
cancelButtonType
:
"default"
,
placement
:
"top"
,
focusButton
:
null
,
templateUrl
:
s
,
hideConfirmButton
:
!
1
,
hideCancelButton
:
!
1
}).
name
},
function
(
t
,
e
){
t
.
exports
=
n
},
function
(
n
,
t
){
n
.
exports
=
'<div class="popover" ng-class="vm.$attrs.placement || vm.defaults.placement">
\
n <div class="arrow"></div>
\
n <h3 class="popover-title" ng-bind-html="vm.$attrs.title"></h3>
\
n <div class="popover-content">
\
n <p ng-bind-html="vm.$attrs.message"></p>
\
n <div class="row">
\
n <div
\
n class="col-xs-6"
\
n ng-if="!vm.$attrs.hideConfirmButton && !vm.defaults.hideConfirmButton"
\
n ng-class="{
\'
col-xs-offset-3
\'
: vm.$attrs.hideCancelButton || vm.defaults.hideCancelButton}">
\
n <button
\
n class="btn btn-block confirm-button"
\
n ng-class="
\'
btn-
\'
+ (vm.$attrs.confirmButtonType || vm.defaults.confirmButtonType)"
\
n ng-click="vm.onConfirm(); vm.hidePopover()"
\
n ng-bind-html="vm.$attrs.confirmText || vm.defaults.confirmText">
\
n </button>
\
n </div>
\
n <div
\
n class="col-xs-6"
\
n ng-if="!vm.$attrs.hideCancelButton && !vm.defaults.hideCancelButton"
\
n ng-class="{
\'
col-xs-offset-3
\'
: vm.$attrs.hideConfirmButton || vm.defaults.hideConfirmButton}">
\
n <button
\
n class="btn btn-block cancel-button"
\
n ng-class="
\'
btn-
\'
+ (vm.$attrs.cancelButtonType || vm.defaults.cancelButtonType)"
\
n ng-click="vm.onCancel(); vm.hidePopover()"
\
n ng-bind-html="vm.$attrs.cancelText || vm.defaults.cancelText">
\
n </button>
\
n </div>
\
n </div>
\
n </div>
\
n</div>
\
n'
},
function
(
n
,
e
){
n
.
exports
=
t
}])});
//# sourceMappingURL=angular-bootstrap-confirm.min.js.map
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment