mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Renaming <div id="contentPanel"> to "cms-editor-dialogs"
This commit is contained in:
parent
0f7175f1f7
commit
6dbfd5fdde
@ -64,7 +64,7 @@
|
||||
// Import forms are processed without ajax
|
||||
if(this.attr('id').match(/^Form_ImportForm/)) return true;
|
||||
|
||||
$('#contentPanel').closeRightPanel();
|
||||
$('.cms-editor-dialogs').closeRightPanel();
|
||||
|
||||
this.trigger('beforeSubmit');
|
||||
|
||||
@ -197,14 +197,14 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#contentPanel').entwine({
|
||||
$('.cms-editor-dialogs').entwine({
|
||||
/**
|
||||
* Close TinyMCE image, link or flash panel.
|
||||
* this function is called everytime a new search, back or add new DataObject are clicked
|
||||
**/
|
||||
closeRightPanel: function(){
|
||||
if($('#contentPanel').is(':visible')) {
|
||||
$('#contentPanel').hide();
|
||||
if($('.cms-editor-dialogs').is(':visible')) {
|
||||
$('.cms-editor-dialogs').hide();
|
||||
$('#Form_EditorToolbarImageForm').hide();
|
||||
$('#Form_EditorToolbarFlashForm').hide();
|
||||
$('#Form_EditorToolbarLinkForm').hide();
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div id="contentPanel">
|
||||
<div id=".cms-editor-dialogs">
|
||||
<% control EditorToolbar %>
|
||||
$ImageForm
|
||||
$LinkForm
|
||||
|
@ -36,7 +36,7 @@
|
||||
* On folder change - lookup the new images
|
||||
*/
|
||||
$("#Form_EditorToolbarImageForm_Files-0").change(function() {
|
||||
$("#contentPanel #Form_EditorToolbarImageForm").ajaxForm({
|
||||
$(".cms-editor-dialogs #Form_EditorToolbarImageForm").ajaxForm({
|
||||
url: 'admin/assets/UploadForm?action_doUpload=1',
|
||||
iframe: true,
|
||||
dataType: 'json',
|
||||
|
Loading…
Reference in New Issue
Block a user