Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
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
Java-于龙
origin-web-common
Commits
4ab390f2
Commit
4ab390f2
authored
Apr 11, 2017
by
Samuel Padgett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use window history back when no cancel callback
parent
fd5caed1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
16 deletions
+20
-16
origin-web-common-ui.js
dist/origin-web-common-ui.js
+6
-4
origin-web-common.js
dist/origin-web-common.js
+8
-6
origin-web-common.min.js
dist/origin-web-common.min.js
+0
-0
templates.js
dist/scripts/templates.js
+0
-2
createProject.html
src/components/create-project/createProject.html
+0
-1
createProject.js
src/components/create-project/createProject.js
+3
-1
editProject.html
src/components/edit-project/editProject.html
+0
-1
editProject.js
src/components/edit-project/editProject.js
+3
-1
No files found.
dist/origin-web-common-ui.js
View file @
4ab390f2
...
...
@@ -87,7 +87,6 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelCreateProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
@@ -191,7 +190,6 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelEditProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
@@ -233,7 +231,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"createProject"
,
function
()
{
.
directive
(
"createProject"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -291,6 +289,8 @@ angular.module("openshiftCommonUI")
if
(
cb
)
{
cb
();
}
}
else
{
$window
.
history
.
back
();
}
};
},
...
...
@@ -434,7 +434,7 @@ angular.module('openshiftCommonUI')
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"editProject"
,
function
()
{
.
directive
(
"editProject"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -517,6 +517,8 @@ angular.module("openshiftCommonUI")
var
cb
=
$scope
.
onCancel
();
if
(
cb
)
{
cb
();
}
else
{
$window
.
history
.
back
();
}
};
},
...
...
dist/origin-web-common.js
View file @
4ab390f2
...
...
@@ -257,7 +257,6 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelCreateProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
@@ -361,7 +360,6 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelEditProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
@@ -403,7 +401,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"createProject"
,
function
(
)
{
.
directive
(
"createProject"
,
[
"$window"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -461,11 +459,13 @@ angular.module("openshiftCommonUI")
if
(
cb
)
{
cb
();
}
}
else
{
$window
.
history
.
back
();
}
};
}],
};
});
}
]
);
;
'use strict'
;
angular
.
module
(
"openshiftCommonUI"
)
...
...
@@ -604,7 +604,7 @@ angular.module('openshiftCommonUI')
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"editProject"
,
function
(
)
{
.
directive
(
"editProject"
,
[
"$window"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -687,11 +687,13 @@ angular.module("openshiftCommonUI")
var
cb
=
$scope
.
onCancel
();
if
(
cb
)
{
cb
();
}
else
{
$window
.
history
.
back
();
}
};
}],
};
});
}
]
);
;
'use strict'
;
angular
.
module
(
'openshiftCommonUI'
)
...
...
dist/origin-web-common.min.js
View file @
4ab390f2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/scripts/templates.js
View file @
4ab390f2
...
...
@@ -77,7 +77,6 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelCreateProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
@@ -181,7 +180,6 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
" <button
\
n"
+
" class=
\"
btn btn-default btn-lg
\"
\
n"
+
" ng-class=
\"
{'dialog-btn': isDialog}
\"
\
n"
+
" back
\
n"
+
" ng-click=
\"
cancelEditProject()
\"
>
\
n"
+
" Cancel
\
n"
+
" </button>
\
n"
+
...
...
src/components/create-project/createProject.html
View file @
4ab390f2
...
...
@@ -73,7 +73,6 @@
<button
class=
"btn btn-default btn-lg"
ng-class=
"{'dialog-btn': isDialog}"
back
ng-click=
"cancelCreateProject()"
>
Cancel
</button>
...
...
src/components/create-project/createProject.js
View file @
4ab390f2
...
...
@@ -2,7 +2,7 @@
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"createProject"
,
function
()
{
.
directive
(
"createProject"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -60,6 +60,8 @@ angular.module("openshiftCommonUI")
if
(
cb
)
{
cb
();
}
}
else
{
$window
.
history
.
back
();
}
};
},
...
...
src/components/edit-project/editProject.html
View file @
4ab390f2
...
...
@@ -29,7 +29,6 @@
<button
class=
"btn btn-default btn-lg"
ng-class=
"{'dialog-btn': isDialog}"
back
ng-click=
"cancelEditProject()"
>
Cancel
</button>
...
...
src/components/edit-project/editProject.js
View file @
4ab390f2
...
...
@@ -2,7 +2,7 @@
angular
.
module
(
"openshiftCommonUI"
)
.
directive
(
"editProject"
,
function
()
{
.
directive
(
"editProject"
,
function
(
$window
)
{
return
{
restrict
:
'E'
,
scope
:
{
...
...
@@ -85,6 +85,8 @@ angular.module("openshiftCommonUI")
var
cb
=
$scope
.
onCancel
();
if
(
cb
)
{
cb
();
}
else
{
$window
.
history
.
back
();
}
};
},
...
...
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