Changeset 1405
- Timestamp:
- 03/05/2010 10:50:31 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 7 edited
- 2 copied
-
. (modified) (1 prop)
-
_InstallationResources (modified) (1 prop)
-
blogs (modified) (1 prop)
-
wiki (modified) (1 prop)
-
wiki/extensions/FCKeditor/FCKeditor.body.php (modified) (3 diffs)
-
wiki/extensions/Help/HelpExtention.css (modified) (3 diffs)
-
wiki/extensions/Help/Help_Guide.php (modified) (2 diffs)
-
wiki/extensions/Help/help extention article.txt (copied) (copied from branches/omcollab_zhongzhen2/wiki/extensions/Help/help extention article.txt)
-
wiki/extensions/Help/images/button_background.gif (deleted)
-
wiki/extensions/Help/images/button_close.gif (copied) (copied from branches/omcollab_zhongzhen2/wiki/extensions/Help/images/button_close.gif)
-
wiki/extensions/Help/images/button_hide.gif (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/omcollab_zhongzhen2 merged: 1401-1404
- Property svn:mergeinfo changed
-
trunk/_InstallationResources
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/blogs
- Property svn:mergeinfo changed (with no actual effect on merging)
-
trunk/wiki
- Property svn:mergeinfo changed
/branches/omcollab_zhongzhen2/wiki merged: 1401-1404
- Property svn:mergeinfo changed
-
trunk/wiki/extensions/FCKeditor/FCKeditor.body.php
r610 r1405 475 475 // Create the editor instance and replace the textarea. 476 476 oFCKeditor.Height = height ; 477 // Added by zhongzhen - For help extention 478 oFCKeditor.Width = document.getElementById('wpTextbox1').style.width; 477 479 oFCKeditor.ReplaceTextarea() ; 478 480 … … 730 732 showFCKEditor -= RTE_VISIBLE; 731 733 oEditorIframe.style.display = 'none'; 732 FCKtoolbar.style.display = ' ';733 SRCtextarea.style.display = ' ';734 FCKtoolbar.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 735 SRCtextarea.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 734 736 } 735 737 //FCKeditor hidden -> visible … … 741 743 oEditorIns.EditingArea.Textarea.value = SRCtextarea.value 742 744 FCKtoolbar.style.display = 'none'; 743 oEditorIframe.style.display = ''; 745 oEditorIframe.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 746 744 747 if ( !bIsWysiwyg ) oEditorIns.SwitchEditMode(); //switch to WYSIWYG 745 748 showFCKEditor += RTE_VISIBLE; // showFCKEditor+=RTE_VISIBLE -
trunk/wiki/extensions/Help/HelpExtention.css
r1400 r1405 7 7 8 8 #wpTextbox1 { 9 width: 60%;10 9 float: left; 11 10 clear: none; 11 display: none; 12 12 } 13 13 … … 22 22 } 23 23 24 #closeButton { 25 width: 15px; 26 height: 15px; 27 position: absolute; 28 top: -7px; 29 right: -7px; 30 font-size: 11px; 31 } 32 24 33 #shadow { 25 34 background-color: #EFEFEF; 26 35 float: right; 27 36 margin: 5px; 28 width: 30%;37 width: 280px; 29 38 } 30 39 … … 38 47 .tab_normal {color: #FFF; cursor: pointer; background-color: #AEAEAE;} 39 48 40 .button_class {float: right; text-align: center; width: 7%;}49 .button_class {float: right; text-align: center; padding-right: 2px; display: none;} 41 50 .help_content {padding: 10px; display: none; color:#444;} 42 51 -
trunk/wiki/extensions/Help/Help_Guide.php
r1400 r1405 30 30 // Add javascript to Edit page 31 31 $wgOut->addHTML("<script> 32 function changeIcon(obj) { 33 var source = obj.src; 34 if (source.search('button_help') > -1) { 35 obj.src = 'extensions/Help/images/button_hide.gif'; 36 $('#shadow').css('display', 'block'); 37 $('#wpTextbox1').css('width', '60%'); 38 } 39 else { 40 obj.src = 'extensions/Help/images/button_help.gif'; 41 $('#shadow').css('display', 'none'); 42 $('#wpTextbox1').css('width', '92%'); 43 } 32 var textwidth = new Number(); 33 function showHelp() { 34 textwidth = $('#editform').width() - $('#shadow').width() - 30; 35 $('.button_class').css('display', 'none'); 36 $('#shadow').css('display', 'block'); 37 $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 38 $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 44 39 } 40 41 function hideHelp() { 42 textwidth = $('#editform').width() - $('.button_class').width() - 30; 43 $('.button_class').css('display', 'block'); 44 $('#shadow').css('display', 'none'); 45 $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 46 $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 47 } 48 49 $(window).resize(function() { 50 if ($('#shadow').css('display') == 'block') 51 textwidth = $('#editform').width() - $('#shadow').width() - 30; 52 else 53 textwidth = $('#editform').width() - $('.button_class').width() - 30; 54 $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 55 $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 56 }); 57 58 $(function() { 59 textwidth = $('#editform').width() - $('#shadow').width() - 30; 60 $('#wpTextbox1').css('display', 'block'); 61 $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 62 $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 63 }); 64 45 65 </script>"); 46 66 … … 78 98 79 99 //Help content area 80 $editPage->editFormTextBeforeContent .= '<div id="shadow"><div id="helpArea">' . $html . '</div></div>'; 100 $editPage->editFormTextBeforeContent .= '<div id="shadow"><div id="helpArea"> 101 <div id="closeButton"><img src="extensions/Help/images/button_close.gif" style="cursor: pointer; border: 0;" onclick="hideHelp()"/></div>' . $html . '</div></div>'; 81 102 // Help button 82 $editPage->editFormTextBeforeContent .= '<div class="button_class"><img src="extensions/Help/images/button_hide.gif" style="cursor: pointer;" onclick="changeIcon(this)"/></div>'; 83 103 $editPage->editFormTextBeforeContent .= '<div class="button_class"><img src="extensions/Help/images/button_help.gif" style="cursor: pointer;" onclick="showHelp()"/></div>'; 84 104 return true; 85 105 }
Note: See TracChangeset
for help on using the changeset viewer.
