mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-02 06:24:11 +01:00
use proper inline style for bookmark add button and feedback
This commit is contained in:
parent
876f11b74e
commit
4264783f66
@ -48,6 +48,15 @@ input.disabled, input.disabled:hover, input.disabled:focus {
|
||||
.bookmarks_addBml {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#bookmark_add_submit {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
opacity: .5;
|
||||
padding: 17px 14px;
|
||||
}
|
||||
|
||||
.bookmarks_label {
|
||||
width: 7em;
|
||||
|
@ -65,9 +65,11 @@ function decreaseAjaxCallCount() {
|
||||
|
||||
function updateLoadingAnimation() {
|
||||
if (ajaxCallCount === 0) {
|
||||
$("#add_form_loading").css("visibility", "hidden");
|
||||
$('#bookmark_add_submit').removeClass('icon-loading-small');
|
||||
$('#bookmark_add_submit').addClass('icon-add');
|
||||
} else {
|
||||
$("#add_form_loading").css("visibility", "visible");
|
||||
$('#bookmark_add_submit').removeClass('icon-add');
|
||||
$('#bookmark_add_submit').addClass('icon-loading-small');
|
||||
}
|
||||
}
|
||||
|
||||
@ -417,4 +419,3 @@ function deleteTag() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -33,8 +33,7 @@ function bookmarklet($bookmarkleturl) {
|
||||
<li>
|
||||
<form id="add_form">
|
||||
<input type="text" id="add_url" value="" placeholder="<?php p($l->t('Address')); ?>"/>
|
||||
<input type="submit" value="<?php p($l->t('Add')); ?>" id="bookmark_add_submit" />
|
||||
<div id="add_form_loading"><img src="<?php print_unescaped(OCP\image_path("bookmarks", "loading.gif")); ?>"> </div>
|
||||
<button id="bookmark_add_submit" title="Add" class="icon-add"></button>
|
||||
</form>
|
||||
<p id="tag_filter" class="open">
|
||||
<input type="text" value="<?php if(isset($_['req_tag'])) p($_['req_tag']); else ""; ?>"/>
|
||||
|
Loading…
Reference in New Issue
Block a user