MINOR Renaming <div id="contentPanel"> to "cms-editor-dialogs"

This commit is contained in:
Ingo Schommer 2011-04-15 11:25:47 +12:00
parent 0f7175f1f7
commit 6dbfd5fdde
3 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -40,7 +40,7 @@
</div> </div>
<div id="contentPanel"> <div id=".cms-editor-dialogs">
<% control EditorToolbar %> <% control EditorToolbar %>
$ImageForm $ImageForm
$LinkForm $LinkForm

View File

@ -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',