Changeset 1096
- Timestamp:
- 04/29/10 16:06:27 (22 months ago)
- Location:
- plugins/apostropheBlogPlugin/trunk
- Files:
-
- 4 modified
-
modules/aBlogAdmin/templates/_form.php (modified) (2 diffs)
-
modules/aBlogAdmin/templates/editSuccess.php (modified) (1 diff)
-
web/css/aBlog.css (modified) (4 diffs)
-
web/js/aBlog.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/_form.php
r1093 r1096 23 23 <span class="publish"><?php echo __('Publish', array(), 'apostrophe_blog') ?></span> 24 24 <span class="unpublish"><?php echo __('Unpublish', array(), 'apostrophe_blog') ?></span> 25 <span class="message"></span>26 25 </a> 27 26 <div id="a-blog-post-update" class="a-btn big a-publish-post">Saved</div> 27 28 28 <div class="post-status option"> 29 29 <?php echo $form['status']->renderRow() ?> … … 80 80 81 81 <h4><?php echo __('Editors', array(), 'apostrophe_blog') ?>: </h4> 82 <?php83 // Dan:84 // The multiple-select needs to go away85 // This should be the multi-select just like categories only it's hidden86 ?>87 82 <?php echo $form['editors_list']->render()?> 88 83 <?php echo $form['editors_list']->renderError() ?> -
plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/editSuccess.php
r1095 r1096 23 23 <div class="a-admin-content main"> 24 24 25 26 <dl id="a-blog-post-status-messages"> 27 </dl> 25 <?php if (0): ?> 26 <?php // We aren't using status messages right now ?> 27 <dl id="a-blog-post-status-messages"></dl> 28 <?php endif ?> 28 29 29 30 <div id="a-blog-post-title-interface" class="a-blog-post-title-interface"> -
plugins/apostropheBlogPlugin/trunk/web/css/aBlog.css
r1093 r1096 349 349 a.a-sidebar-toggle.post-editors-toggle 350 350 { 351 position: relative; 351 352 float: left; 352 353 clear: both; … … 652 653 } 653 654 654 .a-btn.a-publish-post 655 .a-btn.a-publish-post, 656 #a-blog-post-update 655 657 { 656 658 padding: 0; … … 669 671 } 670 672 671 .a-btn.a-publish-post.status 672 { 673 color: #fff !important; 674 text-shadow: 0 1px rgba(0,0,0,0.55) !important; 675 } 676 677 .a-btn.a-publish-post.highlight 678 { 673 #a-blog-post-update 674 { 675 position: absolute; 676 top: 0; 677 left: 0; 679 678 background-color: #ac3; 680 } 681 682 .a-btn.a-publish-post .message, 679 color: #fff !important; 680 text-shadow: 0 1px rgba(0,0,0,0.55) !important; 681 display: none; 682 } 683 683 684 .a-btn.a-publish-post .unpublish, 684 685 .a-btn.a-publish-post.published .publish … … 688 689 689 690 .a-btn.a-publish-post .publish, 690 .a-btn.a-publish-post.published .unpublish, 691 .a-btn.a-publish-post.status .message 691 .a-btn.a-publish-post.published .unpublish 692 692 { 693 693 display: inline; -
plugins/apostropheBlogPlugin/trunk/web/js/aBlog.js
r1093 r1096 37 37 { 38 38 39 $('#a-blog-post-status-indicator').ajaxStart(function(){40 $(this).show();41 })42 $('#a-blog-post-status-indicator').ajaxStop(function(){43 $(this).hide();44 })39 // $('#a-blog-post-status-indicator').ajaxStart(function(){ 40 // $(this).show(); 41 // }) 42 // $('#a-blog-post-status-indicator').ajaxStop(function(){ 43 // $(this).hide(); 44 // }) 45 45 46 46 $.ajax({ … … 143 143 144 144 var publishButton = $('#a-blog-publish-button'); 145 var pUpdate = $('#a-blog-post-update'); 145 146 146 publishButton.children('.message').text(msg).show().siblings(':not(".message")').hide(); 147 if (pUpdate.data('animating') != 1) { 148 pUpdate.data('animating',1).text(msg).fadeIn(100, function(){ 149 publishButton.children().hide(); 150 pUpdate.fadeTo(500,1, function(){ 151 pUpdate.fadeOut(500, function(){ 152 if (publishButton.hasClass('published')) 153 { 154 publishButton.children('.unpublish').fadeIn(100); 155 } 156 else 157 { 158 publishButton.children('.publish').fadeIn(100); 159 } 160 pUpdate.data('animating', 0); 161 }); 162 }); 163 }); 164 }; 147 165 148 publishButton.addClass('status').addClass('highlight', 500, function()149 {150 publishButton.fadeTo(500,1).removeClass('highlight', 200, function()151 {152 publishButton.removeClass('status');153 if (publishButton.hasClass('published'))154 {155 publishButton.children('.publish').show();156 }157 else158 {159 publishButton.children('.unpublish').show();160 };161 publishButton.children('.message').hide();162 });163 });164 166 } 165 167

