mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
improved the private feature
This commit is contained in:
@ -328,14 +328,14 @@ var Piler =
|
||||
},
|
||||
|
||||
|
||||
mark_as_private:function(id)
|
||||
mark_as_private:function(id, val)
|
||||
{
|
||||
Piler.log("[mark_as_private]", id);
|
||||
Piler.log("[mark_as_private]", id, val);
|
||||
|
||||
Piler.poor_mans_keepalive_for_dummy_browsers();
|
||||
|
||||
jQuery.ajax('index.php?route=message/private', {
|
||||
data: { id: id },
|
||||
data: { id: id, val: val },
|
||||
type: "POST"
|
||||
})
|
||||
.done( function( a ) {})
|
||||
|
@ -26,7 +26,7 @@
|
||||
| <a class="messagelink" href="#" onclick="Piler.view_journal(<?php print $id; ?>);"><i class="icon-envelope-alt"></i> <?php print $text_view_journal_envelope; ?></a>
|
||||
<?php } ?>
|
||||
<?php if(Registry::get('auditor_user') == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.mark_as_private(<?php print $id; ?>);"><i class="icon-bookmark-empty"></i> <?php print $text_private; ?></a>
|
||||
| <a class="messagelink" href="#" onclick="Piler.mark_as_private(<?php print $id; ?>, <?php $message['private'] == 1 ? print "0" : print "1" ?>);"><i class="icon-bookmark<?php if($message['private'] == 0) { ?>-empty<?php } ?>"></i> <?php print "private"; ?></a>
|
||||
<?php } ?>
|
||||
<?php if($spam == 1) { ?>
|
||||
| <a class="messagelink" href="#" onclick="Piler.not_spam(<?php print $id; ?>);"><i class="icon-exclamation-sign"></i> <?php print $text_not_spam; ?></a>
|
||||
|
Reference in New Issue
Block a user