[css][s]: refactor notification to remove obsolete css and display spinner using css.
This commit is contained in:
@@ -122,36 +122,11 @@
|
|||||||
* Notifications
|
* Notifications
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
.notification-container {
|
|
||||||
width: 400px;
|
|
||||||
left: 520px;
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
z-index: 100;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification {
|
|
||||||
display: inline-block;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 5px 8px 4px;
|
|
||||||
font-size: 1.3em;
|
|
||||||
text-align: left;
|
|
||||||
font-weight: bold;
|
|
||||||
background: #fe8;
|
|
||||||
-moz-border-radius: 2px;
|
|
||||||
-webkit-border-radius: 2px;
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-action {
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-loader {
|
.notification-loader {
|
||||||
padding: 0 3px 0 0;
|
width: 18px;
|
||||||
opacity: 0.3;
|
margin-left: 5px;
|
||||||
|
background: url(images/small-spinner.gif) no-repeat;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -185,9 +185,9 @@ my.QueryEditor = Backbone.View.extend({
|
|||||||
<input type="text" name="q" value="{{q}}" class="text-query" /> \
|
<input type="text" name="q" value="{{q}}" class="text-query" /> \
|
||||||
<div class="pagination"> \
|
<div class="pagination"> \
|
||||||
<ul> \
|
<ul> \
|
||||||
<li class="prev action-pagination-update"><a>« back</a></li> \
|
<li class="prev action-pagination-update"><a>«</a></li> \
|
||||||
<li class="active"><a><input name="from" type="text" value="{{from}}" /> – <input name="to" type="text" value="{{to}}" /> </a></li> \
|
<li class="active"><a><input name="from" type="text" value="{{from}}" /> – <input name="to" type="text" value="{{to}}" /> </a></li> \
|
||||||
<li class="next action-pagination-update"><a>next »</a></li> \
|
<li class="next action-pagination-update"><a>»</a></li> \
|
||||||
</ul> \
|
</ul> \
|
||||||
</div> \
|
</div> \
|
||||||
<button type="submit" class="btn" style="">Update »</button> \
|
<button type="submit" class="btn" style="">Update »</button> \
|
||||||
@@ -306,7 +306,7 @@ my.notify = function(message, options) {
|
|||||||
<div class="alert alert-{{category}} fade in" data-alert="alert"><a class="close" data-dismiss="alert" href="#">×</a> \
|
<div class="alert alert-{{category}} fade in" data-alert="alert"><a class="close" data-dismiss="alert" href="#">×</a> \
|
||||||
{{msg}} \
|
{{msg}} \
|
||||||
{{#loader}} \
|
{{#loader}} \
|
||||||
<img src="images/small-spinner.gif" class="notification-loader"> \
|
<span class="notification-loader"> </span> \
|
||||||
{{/loader}} \
|
{{/loader}} \
|
||||||
</div>';
|
</div>';
|
||||||
var _templated = $.mustache(_template, tmplData);
|
var _templated = $.mustache(_template, tmplData);
|
||||||
|
|||||||
Reference in New Issue
Block a user