Changeset 411:7735865d1ac0
- Timestamp:
- 06/23/11 14:34:44 (14 years ago)
- Branch:
- wysiwyg
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/tiny_mce/plugins/dcControls/editor_plugin.js
r403 r411 38 38 height: 500, 39 39 inline: 1, 40 popup_css : false,41 40 dc_popup: '', 42 41 alwaysRaised: 'yes', … … 57 56 height: 500, 58 57 inline: 1, 59 popup_css : false,60 58 dc_popup: '', 61 59 alwaysRaised: 'yes', -
admin/js/tiny_mce/plugins/dcControls/js/popup_web_media.js
r410 r411 7 7 onProviderNotFound: function(url) { 8 8 $('#src').removeClass().addClass('error'); 9 alert( 'Provider not supported');9 alert(tinyMCEPopup.editor.getLang('dcControls_dlg.provider_not_supported')); 10 10 }, 11 11 beforeEmbed: function(data) { 12 12 if (data.type == 'error') { 13 13 $('#src').removeClass().addClass('error'); 14 $('a.insert').hide(); 14 15 } else { 15 16 $('#src').removeClass().addClass('success'); 17 $('a.insert').show(); 16 18 } 17 19 }, … … 42 44 onError: function(xhr,status,error) { 43 45 $('#src').removeClass().addClass('error'); 46 alert(tinyMCEPopup.editor.getLang('dcControl_dlg.webmedia_no_information')); 44 47 } 45 48 }, 46 49 47 50 init: function() { 51 $('a.insert').hide(); 52 48 53 $('#src').focusin(function(e) { 49 54 $(this).removeClass(); … … 59 64 return; 60 65 } 66 67 $('a.insert').hide(); 61 68 62 69 $('div.two-cols').slideUp(); … … 126 133 tinyMCEPopup.close(); 127 134 } else { 128 alert( 'Provide a valid media');135 alert(tinyMCEPopup.editor.getLang('dcControls_dlg.no_media_loaded')); 129 136 } 130 137 }); -
admin/js/tiny_mce/themes/advanced/skins/dotclear/dialog.css
r403 r411 7 7 } 8 8 9 /* Buttons */ 10 a.button { margin-right: 5px; } 11 a.insert { font-weight: bold; } 9 12 /* Web media */ 10 13 #src { … … 21 24 background: #99ff99 url(img/tick.png) no-repeat 7px center; 22 25 } 26 23 27 24 28 /* Browse */ -
admin/media_item.php
r380 r411 306 306 307 307 echo 308 '<p><a id="media-insert-cancel" class="button " href="#">'.__('Cancel').'</a> -'.309 '< strong><a id="media-insert-ok" class="button" href="#">'.__('Insert').'</a></strong>'.308 '<p><a id="media-insert-cancel" class="button cancel" href="#">'.__('cancel').'</a>'. 309 '<a id="media-insert-ok" class="button insert" href="#">'.__('insert').'</a>'. 310 310 form::hidden(array('type'),html::escapeHTML($media_type)). 311 311 form::hidden(array('title'),html::escapeHTML($file->media_title)). -
admin/popup_link.php
r328 r411 64 64 form::combo('hreflang',$lang_combo,$hreflang). 65 65 '</label></p>'. 66 '<p><a class="button reset" href="#" id="link-insert-cancel">'.__('cancel').'</a> -'.67 '< strong><a class="button" href="#" id="link-insert-ok">'.__('insert').'</a></strong></p>'."\n".66 '<p><a class="button cancel" href="#" id="link-insert-cancel">'.__('cancel').'</a>'. 67 '<a class="button insert" href="#" id="link-insert-ok">'.__('insert').'</a></p>'."\n". 68 68 69 69 '<div id="div-entries">'. -
admin/popup_web_media.php
r403 r411 36 36 '<h2>'.__('Add a web media').'</h2>'. 37 37 38 '<p class="error" style="display: none;"></p>'. 38 39 '<form id="video-insert-form" action="#" method="get">'. 39 40 '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Source URL:').'</label>'. 40 41 form::field('src',65,512,'').' '. 41 '<a class="button" href="#" id="webmedia-insert-search">'.__(' search').'</a> -'.42 '< strong><a class="button" href="#" id="webmedia-insert-ok">'.__('insert').'</a></strong> -'.43 '<a class="button reset" href="#" id="webmedia-insert-cancel">'.__('cancel').'</a></p>'.42 '<a class="button" href="#" id="webmedia-insert-search">'.__('preview').'</a>'. 43 '<a class="button insert" href="#" id="webmedia-insert-ok">'.__('insert').'</a>'. 44 '<a class="button cancel" href="#" id="webmedia-insert-cancel">'.__('cancel').'</a></p>'. 44 45 45 46 '<div class="two-cols" style="display:none;"><div class="col">'. -
inc/admin/lib.dc.page.php
r404 r411 616 616 'link', 617 617 'unlink', 618 'anchor', 618 619 'separator', 619 620 'media', … … 803 804 $tb->addI18n('fullscreen',array('desc' => __('Toggle fullscreen mode'))); 804 805 $tb->addI18n('aria',array('rich_text_area' => __('Rich Text Area'))); 805 806 806 $tb->addI18n('dcControls',array( 807 807 'inlinecode_desc' => __('Code'), … … 810 810 'media_desc' => __('Add media from media manager'), 811 811 'webmedia_desc' => __('Add media from web') 812 )); 813 $tb->addI18n('dcControls_dlg',array( 814 'provider_not_supported' => __('Provider not supported.'), 815 'webmedia_no_information' => __('Impossible to get media information. Please, try again later.'), 816 'no_media_loaded' => __('No media loaded. Please, load one beore inserting.') 812 817 )); 813 818
Note: See TracChangeset
for help on using the changeset viewer.