Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
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
ulakbus
ulakbus-ui
Commits
ceb5b67f
Commit
ceb5b67f
authored
Feb 19, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX remove button disabler for system works properly until work done
parent
aeb8c045
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
16 deletions
+16
-16
auth_controller.js
app/components/auth/auth_controller.js
+2
-2
auth_service.js
app/components/auth/auth_service.js
+1
-1
index.html
app/index.html
+1
-1
main.html
app/main.html
+1
-1
directives.js
app/shared/directives.js
+1
-1
form_service.js
app/zetalib/form_service.js
+7
-7
app.js
dist/app.js
+2
-2
index.html
dist/index.html
+1
-1
No files found.
app/components/auth/auth_controller.js
View file @
ceb5b67f
...
@@ -37,7 +37,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
...
@@ -37,7 +37,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
];
];
// to show page items showApp must be set to true
// to show page items showApp must be set to true
// it prevents to show empty nonsense page items when http401/403
// it prevents to show empty nonsense page items when http401/403
$rootScope
.
showApp
=
true
;
//
$rootScope.showApp = true;
});
});
$scope
.
loggingIn
=
false
;
$scope
.
loggingIn
=
false
;
$scope
.
onSubmit
=
function
(
form
)
{
$scope
.
onSubmit
=
function
(
form
)
{
...
@@ -53,7 +53,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
...
@@ -53,7 +53,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
})
})
.
then
(
function
()
{
.
then
(
function
()
{
$scope
.
loggingIn
=
false
;
$scope
.
loggingIn
=
false
;
Generator
.
button_switch
(
fals
e
);
Generator
.
button_switch
(
tru
e
);
})
})
}
}
else
{
else
{
...
...
app/components/auth/auth_service.js
View file @
ceb5b67f
...
@@ -35,7 +35,7 @@ angular.module('ulakbus.auth')
...
@@ -35,7 +35,7 @@ angular.module('ulakbus.auth')
.
post
(
RESTURL
.
url
+
url
,
credentials
)
.
post
(
RESTURL
.
url
+
url
,
credentials
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
//$window.sessionStorage.token = data.token;
//$window.sessionStorage.token = data.token;
Generator
.
button_switch
(
true
);
$rootScope
.
loggedInUser
=
true
;
$rootScope
.
loggedInUser
=
true
;
})
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
...
...
app/index.html
View file @
ceb5b67f
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<link
rel=
"stylesheet"
href=
"bower_components/intro.js/themes/introjs-nassim.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"bower_components/intro.js/themes/introjs-nassim.css"
type=
"text/css"
>
</head>
</head>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp"
>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
...
app/main.html
View file @
ceb5b67f
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<!-- @endif -->
<!-- @endif -->
</head>
</head>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp"
>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
...
app/shared/directives.js
View file @
ceb5b67f
...
@@ -357,7 +357,7 @@ angular.module('ulakbus')
...
@@ -357,7 +357,7 @@ angular.module('ulakbus')
sidebarmenu
.
metisMenu
();
sidebarmenu
.
metisMenu
();
// to show page items showApp must be set to true
// to show page items showApp must be set to true
// it prevents to show empty nonsense page items when http401/403
// it prevents to show empty nonsense page items when http401/403
$rootScope
.
showApp
=
true
;
//
$rootScope.showApp = true;
});
});
});
});
...
...
app/zetalib/form_service.js
View file @
ceb5b67f
...
@@ -743,7 +743,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -743,7 +743,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
button
[
positions
[
position
]]
=
true
;
button
[
positions
[
position
]]
=
true
;
});
});
$log
.
debug
(
'buttons >> '
,
positions
[
position
])
$log
.
debug
(
'buttons >> '
,
positions
[
position
])
}
}
;
/**
/**
* @memberof ulakbus.formService
* @memberof ulakbus.formService
* @ngdoc function
* @ngdoc function
...
@@ -753,11 +753,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -753,11 +753,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
* @returns {*}
* @returns {*}
*/
*/
generator
.
get_form
=
function
(
scope
)
{
generator
.
get_form
=
function
(
scope
)
{
generator
.
button_switch
(
false
);
//
generator.button_switch(false);
return
$http
return
$http
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
generator
.
button_switch
(
true
);
//
generator.button_switch(true);
return
generator
.
generate
(
scope
,
res
.
data
);
return
generator
.
generate
(
scope
,
res
.
data
);
});
});
};
};
...
@@ -770,11 +770,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -770,11 +770,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
* @returns {*}
* @returns {*}
*/
*/
generator
.
get_list
=
function
(
scope
)
{
generator
.
get_list
=
function
(
scope
)
{
generator
.
button_switch
(
false
);
//
generator.button_switch(false);
return
$http
return
$http
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
generator
.
button_switch
(
true
);
//
generator.button_switch(true);
return
res
;
return
res
;
});
});
};
};
...
@@ -788,11 +788,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -788,11 +788,11 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
* @returns {*}
* @returns {*}
*/
*/
generator
.
get_wf
=
function
(
scope
)
{
generator
.
get_wf
=
function
(
scope
)
{
generator
.
button_switch
(
false
);
//
generator.button_switch(false);
return
$http
return
$http
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
post
(
generator
.
makeUrl
(
scope
),
scope
.
form_params
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
generator
.
button_switch
(
true
);
//
generator.button_switch(true);
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
return
generator
.
pathDecider
(
res
.
data
.
client_cmd
,
scope
,
res
.
data
);
});
});
};
};
...
...
dist/app.js
View file @
ceb5b67f
This diff is collapsed.
Click to expand it.
dist/index.html
View file @
ceb5b67f
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<link
rel=
"stylesheet"
href=
"css/roboto/roboto.css"
>
<link
rel=
"stylesheet"
href=
"css/roboto/roboto.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
</head>
</head>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp"
>
<body
ng-controller=
"KeyListenController"
ng-keydown=
"down($event)"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
...
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