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
 
@@ -321,7 +321,8 @@ class page
 
    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;
 

	
 
  }
 

	
 
  /**
inc/class.schedule.php
Show inline comments
 
@@ -498,7 +498,8 @@ class Schedule
 
	. '        </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
scripts/displayTables.js
Show inline comments
 
@@ -147,6 +147,10 @@ jQuery(document).ready( function()
 
            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.
 
 *
 
@@ -87,7 +87,7 @@ td{
 
}
 

	
 
/* Class Coloring */
 

	
 
.multi {  }
 
.class0 { background: #69c76f; }
 
.class1 { background: #c5c769; }
 
.class2 { background: #c76b69; }
0 comments (0 inline, 0 general)