Changeset - c67f6e823b4d
[Not reviewed]
default
0 4 0
Ethan Zonca - 14 years ago 2011-10-14 22:22:39
ez@ethanzonca.com
Updated share dialog fixing bug 89, URL hidden by default to maintain consistent formatting
4 files changed with 10 insertions and 4 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -318,13 +318,14 @@ class page
 
         '      </div> <!-- id="footer" -->'. PHP_EOL .
 
         '    </div> <!-- id="page" -->'. PHP_EOL;
 
    echo $this->trackingcode;
 
    echo '  </body>'. PHP_EOL .
 
         '</html>' . PHP_EOL;
 
    $this->pageGenTime = round(microtime() - $this->pageGenTime,4);
 
    echo '<!-- Page generated in ' . $this->pageGenTime . ' seconds -->';
 
    echo '<!-- Page generated in ' . $this->pageGenTime . ' seconds -->' . PHP_EOL;
 

	
 
  }
 

	
 
  /**
 
   * \brief
 
   *   Shows a box with recently processed schedules
 
   */
inc/class.schedule.php
Show inline comments
 
@@ -495,13 +495,14 @@ class Schedule
 
	. '    ' . PHP_EOL
 
	. '    jQuery(\'.cute-time\').cuteTime();' . PHP_EOL
 
	. '  });' . PHP_EOL
 
	. '        </script>' . PHP_EOL;
 

	
 
      echo '        <div id="sharedialog" title="Share Schedule">' . PHP_EOL
 
	. '          <p class="indent"><img alt="[fb]" class="noborder" src="http://facebook.com/favicon.ico" /> <a href="http://www.facebook.com/sharer.php?u=' . urlencode(htmlentities($outputPage->gen_share_url($this->id_get()))) .'&amp;t=My%20Schedule">Share on Facebook</a></p><p class="indent">You can also share your schedule with the URL below:<br /><em class="centeredtext smallurl">' . htmlentities($outputPage->gen_share_url($this->id_get())) . '</em></p>' . PHP_EOL
 
	. '          <p class="indent"><img alt="[fb]" class="noborder" src="http://facebook.com/favicon.ico" /> <a href="http://www.facebook.com/sharer.php?u=' . urlencode(htmlentities($outputPage->gen_share_url($this->id_get()))) .'&amp;t=My%20Schedule">Share on Facebook</a></p>
 
		     <p class="indent"><img alt="[sp]" class="noborder" src="images/favicon.png" style="margin-right: 5px;"/><span class="clicktoclipboard"><a href="#">Share with URL</a><span class="toclipboard hidden"><p>Copy the share URL below:<br /><em class="centeredtext smallurl">' . htmlentities($outputPage->gen_share_url($this->id_get())) . '</em></p></span></span></p>' . PHP_EOL
 
	. '        </div>' . PHP_EOL
 
	. '        <p>' . PHP_EOL
 
	. '          <a href="input.php?s='.$this->id.'" class="button">Edit</a>' . PHP_EOL
 
	. '          <span id="printItems"><a href="#" class="button">Print</a></span>' . PHP_EOL
 
	. '          <span id="share"><a href="#" class="button">Share</a></span>' . PHP_EOL;
 

	
scripts/displayTables.js
Show inline comments
 
@@ -144,9 +144,13 @@ jQuery(document).ready( function()
 
          },
 
          position:{
 
            my: 'bottom left',
 
            at: 'top center',
 
          }
 
      });  
 

	
 
      jQuery(".clicktoclipboard").click( function() {
 
        jQuery('.toclipboard', this).toggle();
 
      });
 
  }
 
);
 

	
styles/output.css
Show inline comments
 
/*
 
 * Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
 
 * Copyright 2011 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
 
 *
 
 * This file is part of SlatePermutate.
 
 *
 
 * SlatePermutate is free software: you can redistribute it and/or modify
 
 * it under the terms of the GNU Affero General Public License as published by
 
 * the Free Software Foundation, either version 3 of the License, or
 
@@ -84,13 +84,13 @@ td{
 
{
 
    color: #444444;
 
    font-size: small;
 
}
 

	
 
/* Class Coloring */
 

	
 
.multi {  }
 
.class0 { background: #69c76f; }
 
.class1 { background: #c5c769; }
 
.class2 { background: #c76b69; }
 
.class3 { background: #696fc7; }
 
.class4 { background: #69a7c7; }
 
.class5 { background: #c769c6; }
0 comments (0 inline, 0 general)