fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodano wyszukiwarke na stronie glownej. Refs #75.
[redakcja.git]
/
project
/
templates
/
explorer
/
panels
/
xmleditor.html
diff --git
a/project/templates/explorer/panels/xmleditor.html
b/project/templates/explorer/panels/xmleditor.html
index
76018ca
..
3a1baf1
100644
(file)
--- a/
project/templates/explorer/panels/xmleditor.html
+++ b/
project/templates/explorer/panels/xmleditor.html
@@
-1,6
+1,6
@@
{% load toolbar_tags %}
{% load toolbar_tags %}
-<div class="iframe-container" style="position: absolute; top: 4
1pt
; left:0px; right:0px; bottom: 0px;">
+<div class="iframe-container" style="position: absolute; top: 4
0px
; left:0px; right:0px; bottom: 0px;">
<textarea name="text">{{ text }}</textarea>
</div>
<textarea name="text">{{ text }}</textarea>
</div>
@@
-14,7
+14,7
@@
panel_hooks = {
var panel = self.contentDiv;
var textareaId = 'xmleditor-' + Math.ceil(Math.random() * 1000000000);
var panel = self.contentDiv;
var textareaId = 'xmleditor-' + Math.ceil(Math.random() * 1000000000);
-
$('textarea', panel).attr('id', textareaId);
+ $('textarea', panel).attr('id', textareaId);
var texteditor = CodeMirror.fromTextArea(textareaId, {
parserfile: 'parsexml.js',
var texteditor = CodeMirror.fromTextArea(textareaId, {
parserfile: 'parsexml.js',
@@
-31,6
+31,7
@@
panel_hooks = {
texteditor.grabKeys(
$.fbind(self, self.hotkeyPressed),
$.fbind(self, self.isHotkey) );
texteditor.grabKeys(
$.fbind(self, self.hotkeyPressed),
$.fbind(self, self.isHotkey) );
+
}
})
}
})
@@
-53,7
+54,12
@@
panel_hooks = {
}
};
$.extend(saveInfo, myInfo);
}
};
$.extend(saveInfo, myInfo);
- }
+ },
+
+ toolbarResized: function() {
+ $('.iframe-container', self.contentDiv).css('top',
+ $('.toolbar', self.contentDiv).outerHeight() );
+ }
};
</script>
};
</script>