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