fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki_img
/
view_editor_motifs.js
diff --git
a/redakcja/static/js/wiki_img/view_editor_motifs.js
b/redakcja/static/js/wiki_img/view_editor_motifs.js
index
11cbef0
..
ad60c22
100644
(file)
--- a/
redakcja/static/js/wiki_img/view_editor_motifs.js
+++ b/
redakcja/static/js/wiki_img/view_editor_motifs.js
@@
-8,6
+8,8
@@
var self = this;
self.$tag_name = $('#motifs-editor .tag-name');
var self = this;
self.$tag_name = $('#motifs-editor .tag-name');
+ self.$toolbar = $('#motifs-editor .toolbar');
+ self.$scrolled = $('#motifs-editor .scrolled');
withThemes(function(canonThemes){
self.$tag_name.autocomplete(canonThemes, {
autoFill: true,
withThemes(function(canonThemes){
self.$tag_name.autocomplete(canonThemes, {
autoFill: true,
@@
-33,6
+35,7
@@
if (window.confirm("Czy na pewno chcesz usunąć ten motyw?")) {
$(this).prev().remove();
$(this).remove();
if (window.confirm("Czy na pewno chcesz usunąć ten motyw?")) {
$(this).prev().remove();
$(this).remove();
+ self._refreshLayout();
}
self._resetSelection();
return false;
}
self._resetSelection();
return false;
@@
-70,6
+73,9
@@
self.ias.setOptions({ hide: true });
}
self.ias.setOptions({ hide: true });
}
+ MotifsPerspective.prototype._refreshLayout = function() {
+ this.$scrolled.css({top: this.$toolbar.height()});
+ };
MotifsPerspective.prototype._push = function(name, x1, y1, x2, y2) {
var $e = $('<span class="image-object"></span>')
MotifsPerspective.prototype._push = function(name, x1, y1, x2, y2) {
var $e = $('<span class="image-object"></span>')
@@
-77,7
+83,8
@@
if (x1 !== null)
$e.data('coords', [x1, y1, x2, y2]);
this.$objects_list.append($e);
if (x1 !== null)
$e.data('coords', [x1, y1, x2, y2]);
this.$objects_list.append($e);
- this.$objects_list.append('<span class="delete">(x)</span>');
+ this.$objects_list.append('<span class="delete">(x) </span>');
+ this._refreshLayout();
}
}