Merge pull request #104 from simonlnu/master

push fix for funky menu action. the overflow-x might break again for some people
This commit is contained in:
Simon 2012-03-07 07:08:23 -08:00
commit 58c557b3ad
3 changed files with 35 additions and 44 deletions

View File

@ -1,12 +1,7 @@
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="$baseurl/js/ajaxupload.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var editor = false; var editor = false;
var textlen = 0; var textlen = 0;
var plaintext = '$editselect'; var plaintext = '$editselect';
// this is here because of the silly tinymce error. didn't help.
var skin = 'default';
function initEditor(cb) { function initEditor(cb) {
if (editor==false) { if (editor==false) {
@ -119,7 +114,9 @@ function enableOnUser(){
$(this).val(""); $(this).val("");
initEditor(); initEditor();
} }
</script>
<script type="text/javascript" src="$baseurl/js/ajaxupload.js"></script>
<script type="text/javascript">
var ispublic = '$ispublic'; var ispublic = '$ispublic';
var addtitle = '$addtitle'; var addtitle = '$addtitle';
@ -127,6 +124,7 @@ function enableOnUser(){
/* enable tinymce on focus and click */ /* enable tinymce on focus and click */
$("#profile-jot-text").focus(enableOnUser); $("#profile-jot-text").focus(enableOnUser);
$("#profile-jot-text").click(enableOnUser); $("#profile-jot-text").click(enableOnUser);
/* enable character counter */
$("#profile-jot-text").focus(charCounter); $("#profile-jot-text").focus(charCounter);
$("#profile-jot-text").click(charCounter); $("#profile-jot-text").click(charCounter);

View File

@ -12,7 +12,8 @@
<input type="hidden" name="post_id" value="$post_id" /> <input type="hidden" name="post_id" value="$post_id" />
<input type="hidden" name="preview" id="jot-preview" value="0" /> <input type="hidden" name="preview" id="jot-preview" value="0" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body">{{ if $content }}$content{{ else }}$share{{ endif }}</textarea> <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body">{{ if $content }}$content{{ else }}$share{{ endif }}
</textarea>
<div id="jot-tools" class="jothidden" style="display:none"> <div id="jot-tools" class="jothidden" style="display:none">
<span class="icon border camera"><a href="#" onclick="return false;" id="wall-image-upload" title="$upload"></a></span> <span class="icon border camera"><a href="#" onclick="return false;" id="wall-image-upload" title="$upload"></a></span>
@ -24,16 +25,13 @@
<span class="icon border noglobe"><a id="profile-nolocation" onclick="jotClearLocation();return false;" title="$noloc"></a></span> <span class="icon border noglobe"><a id="profile-nolocation" onclick="jotClearLocation();return false;" title="$noloc"></a></span>
$jotplugins $jotplugins
<ul id="profile-jot-submit-wrapper"> <ul id="profile-jot-submit-wrapper">
<li>
<a class="icon-text-preview pointer"></a><a id="jot-preview-link" class="pointer" onclick="preview_post(); return false;" title="$preview">$preview</a>
</li>
<li id="profile-jot-perms" class="profile-jot-perms"> <li id="profile-jot-perms" class="profile-jot-perms">
<a id="jot-perms-icon" href="#profile-jot-acl-wrapper" class="icon $lockstate $bang" title="$permset"></a> <a id="jot-perms-icon" href="#profile-jot-acl-wrapper" class="icon $lockstate $bang" title="$permset"></a>
</li> </li>
<li><input type="submit" id="profile-jot-submit" name="submit" value="$share" /></li> <li><input type="submit" id="profile-jot-submit" name="submit" value="$share" /></li>
<li>
<a class="icon-text-preview pointer"></a><a id="jot-preview-link" class="pointer" onclick="preview_post(); return false;" title="$preview">$preview</a>
</li>
</ul> </ul>
<span id="profile-rotator" class="loading" style="display: none"> <span id="profile-rotator" class="loading" style="display: none">
<img src="images/rotator.gif" alt="$wait" title="$wait" /></span> <img src="images/rotator.gif" alt="$wait" title="$wait" /></span>

View File

@ -584,26 +584,26 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link
border:2px solid #f8911b; border:2px solid #f8911b;
border-bottom:0; border-bottom:0;
padding-bottom: 50px; padding-bottom: 50px;
z-index:1000; z-index: 1000;
} }
#sysmsg { #sysmsg {
position:fixed; position: fixed;
bottom:0; bottom: 0;
-moz-box-shadow:0 0 5px #888; -moz-box-shadow: 0 0 5px #888;
-webkit-box-shadow:0 0 5px #888; -webkit-box-shadow: 0 0 5px #888;
box-shadow:0 0 5px #888; box-shadow: 0 0 5px #888;
padding: 10px; padding: 10px;
background-color:#fcaf3e; background-color: #fcaf3e;
border:2px solid #f8911b; border: 2px solid #f8911b;
border-bottom:0; border-bottom: 0;
padding-bottom: 50px; padding-bottom: 50px;
z-index:1000; z-index: 1000;
} }
#sysmsg_info br, #sysmsg_info br,
#sysmsg br { #sysmsg br {
display:block; display: block;
margin:2px 0px; margin: 2px 0px;
border-top:1px solid #ccccce; border-top: 1px solid #ccccce;
} }
@ -757,7 +757,7 @@ aside #viewcontacts {
margin-top: 10px; margin-top: 10px;
} }
#jot #jot-title { #jot #jot-title {
border: 0px; border: 1px solid #aaa;
margin: 0 0 5px; margin: 0 0 5px;
height: 20px; height: 20px;
width: 90%; width: 90%;
@ -766,11 +766,6 @@ aside #viewcontacts {
vertical-align: middle; vertical-align: middle;
padding: 5px 1px; padding: 5px 1px;
} }
#jot #jot-title:hover,
#jot #jot-title:focus {
border: 1px solid #999;
border-radius: 5px;
}
#jot #character-counter { #jot #character-counter {
width: 40px; width: 40px;
float: right; float: right;
@ -1013,12 +1008,12 @@ section {
.wall-item-content { .wall-item-content {
overflow-x: auto; overflow-x: auto;
} }
/* removing it from here, vs. putting it in .wall-item-content
* might break things for people. we shall see ;) */
[id^="tread-wrapper"], [class^="tread-wrapper"] { [id^="tread-wrapper"], [class^="tread-wrapper"] {
margin: 15px 0 0 0; margin: 15px 0 0 0;
/*border: 1px #aaa solid;*/
/*border-radius: 5px;*/
padding: 0px; padding: 0px;
overflow-x: auto; /*overflow-x: auto;*/
} }
.wall-item-photo-menu { .wall-item-photo-menu {
display: none; display: none;
@ -1159,7 +1154,7 @@ section {
position: absolute; position: absolute;
left: -2px; top: 101px; left: -2px; top: 101px;
display: none; display: none;
z-index: 10000; z-index: 10003;
-webkit-border-radius: 0px 5px 5px 5px; -webkit-border-radius: 0px 5px 5px 5px;
-moz-border-radius: 0px 5px 5px 5px; -moz-border-radius: 0px 5px 5px 5px;
border-radius: 0px 5px 5px 5px; border-radius: 0px 5px 5px 5px;
@ -2581,17 +2576,17 @@ footer {
/* autocomplete popup */ /* autocomplete popup */
.acpopup { .acpopup {
max-height:150px; max-height: 150px;
background-color:#555753; background-color: #555753;
color: #FFFFFF; color: #fff;
overflow:auto; overflow: auto;
z-index:100000; z-index: 100000;
border:1px solid #cccccc; border: 1px solid #cccccc;
} }
.acpopupitem { .acpopupitem {
background-color:#555753; background-color: #555753;
padding: 4px; padding: 4px;
clear:left; clear: left;
} }
.acpopupitem img { .acpopupitem img {
float: left; float: left;