Permalink
Browse files

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

  • Loading branch information...
1 parent 0f7175f commit 6dbfd5fdde84fbc6f90f47a4dcee6bf583ddadcd @chillu chillu committed Apr 14, 2011
Showing with 6 additions and 6 deletions.
  1. +4 −4 admin/javascript/ModelAdmin.js
  2. +1 −1 admin/templates/LeftAndMain.ss
  3. +1 −1 javascript/HtmlEditorField.js
@@ -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',

0 comments on commit 6dbfd5f

Please sign in to comment.