Use statusBarSet() js function from Pillar
This commit is contained in:
parent
c9d7da3a42
commit
144c5b8894
@ -29,6 +29,27 @@ NavbarTransparent();
|
|||||||
|
|
||||||
|
|
||||||
/* Status Bar */
|
/* Status Bar */
|
||||||
|
function statusBarClear(delay_class, delay_html){
|
||||||
|
var statusBar = $("#status-bar");
|
||||||
|
|
||||||
|
if (!delay_class) { delay_class = 0 };
|
||||||
|
if (!delay_html) { delay_html = 250 };
|
||||||
|
|
||||||
|
if (delay_class == 0) {
|
||||||
|
statusBar.removeAttr('class');
|
||||||
|
return
|
||||||
|
|
||||||
|
} else {
|
||||||
|
setTimeout(function(){
|
||||||
|
statusBar.removeAttr('class');
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
statusBar.html('');
|
||||||
|
}, delay_html);
|
||||||
|
}, delay_class);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function statusBarSet(classes, html, icon_name, time){
|
function statusBarSet(classes, html, icon_name, time){
|
||||||
/* Utility to notify the user by temporarily flashing text on the project header
|
/* Utility to notify the user by temporarily flashing text on the project header
|
||||||
Usage:
|
Usage:
|
||||||
@ -59,14 +80,16 @@ function statusBarSet(classes, html, icon_name, time){
|
|||||||
icon = '<i class="' + icon_name + '"></i>';
|
icon = '<i class="' + icon_name + '"></i>';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
statusBarClear(0,0);
|
||||||
|
|
||||||
var text = icon + html;
|
var text = icon + html;
|
||||||
$("#project-statusbar").addClass('active ' + classes);
|
var statusBar = $("#status-bar");
|
||||||
$("#project-statusbar").html(text);
|
|
||||||
|
statusBar
|
||||||
|
.addClass('active ' + classes)
|
||||||
|
.html(text);
|
||||||
|
|
||||||
/* Back to normal */
|
/* Back to normal */
|
||||||
setTimeout(function(){
|
statusBarClear(time, 250);
|
||||||
$("#project-statusbar").removeAttr('class');
|
|
||||||
$("#project-statusbar").html();
|
|
||||||
}, time);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
left: 0
|
left: 0
|
||||||
|
|
||||||
#project-side-container.collapsed+#project_context-header
|
#project-side-container.collapsed+#project_context-header
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
left: $project-sidebar-width
|
left: $project-sidebar-width
|
||||||
|
|
||||||
|
|
||||||
@ -233,7 +233,7 @@
|
|||||||
text-decoration: none
|
text-decoration: none
|
||||||
outline: none
|
outline: none
|
||||||
|
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
position: absolute
|
position: absolute
|
||||||
// left: $project_nav-width + $project-sidebar-width
|
// left: $project_nav-width + $project-sidebar-width
|
||||||
left: 0
|
left: 0
|
||||||
|
@ -1091,3 +1091,24 @@ label, label.control-label
|
|||||||
iframe
|
iframe
|
||||||
width: 853px
|
width: 853px
|
||||||
height: 480px
|
height: 480px
|
||||||
|
|
||||||
|
#status-bar
|
||||||
|
opacity: 0
|
||||||
|
transition: all 250ms ease-in-out
|
||||||
|
|
||||||
|
i
|
||||||
|
margin-right: 5px
|
||||||
|
|
||||||
|
&.info
|
||||||
|
color: $color-info
|
||||||
|
&.error
|
||||||
|
color: $color-danger
|
||||||
|
&.warning
|
||||||
|
color: $color-warning
|
||||||
|
&.success
|
||||||
|
color: $color-success
|
||||||
|
&.default
|
||||||
|
color: $color-text-light
|
||||||
|
|
||||||
|
&.active
|
||||||
|
opacity: 1
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
#project_context-container
|
#project_context-container
|
||||||
#project_context-header
|
#project_context-header
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
|
|
||||||
span#project-edit-title
|
span#project-edit-title
|
||||||
| Edit Project
|
| Edit Project
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
#project_context-container
|
#project_context-container
|
||||||
#project_context-header
|
#project_context-header
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
|
|
||||||
span#project-edit-title
|
span#project-edit-title
|
||||||
| Edit Project
|
| Edit Project
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
#project_context-container
|
#project_context-container
|
||||||
#project_context-header
|
#project_context-header
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
|
|
||||||
span#project-edit-title
|
span#project-edit-title
|
||||||
| Manage team members for this project
|
| Manage team members for this project
|
||||||
|
@ -108,7 +108,7 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css', v
|
|||||||
#project_context-container
|
#project_context-container
|
||||||
| {% if project.has_method('PUT') %}
|
| {% if project.has_method('PUT') %}
|
||||||
#project_context-header
|
#project_context-header
|
||||||
span#project-statusbar
|
span#status-bar
|
||||||
|
|
||||||
ul.project-edit-tools.disabled
|
ul.project-edit-tools.disabled
|
||||||
li.button-dropdown
|
li.button-dropdown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user