diff options
author | Sem <sembrestels@riseup.net> | 2012-07-28 02:46:09 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-28 02:46:09 +0200 |
commit | fdd1fa0728668a910b49fb78ae805df227c69cdf (patch) | |
tree | 8939df1264ea61995b1669d8a9544e3a38118f7e /mod/thewire/views/default/js | |
parent | b164c39ac5c82b311e9ef07fa01fcc464bab86b1 (diff) | |
download | elgg-fdd1fa0728668a910b49fb78ae805df227c69cdf.tar.gz elgg-fdd1fa0728668a910b49fb78ae805df227c69cdf.tar.bz2 |
Fixes #3294. Erased php code in thewire javascript file and moved character couner warning text style to css file.
Diffstat (limited to 'mod/thewire/views/default/js')
-rw-r--r-- | mod/thewire/views/default/js/thewire.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mod/thewire/views/default/js/thewire.php b/mod/thewire/views/default/js/thewire.php index 0a6eba134..ba8f35050 100644 --- a/mod/thewire/views/default/js/thewire.php +++ b/mod/thewire/views/default/js/thewire.php @@ -34,11 +34,11 @@ elgg.thewire.textCounter = function(textarea, status, limit) { status.html(remaining_chars); if (remaining_chars < 0) { - status.parent().css("color", "#D40D12"); + status.parent().addClass("thewire-characters-remaining-warning"); $("#thewire-submit-button").attr('disabled', 'disabled'); $("#thewire-submit-button").addClass('elgg-state-disabled'); } else { - status.parent().css("color", ""); + status.parent().removeClass("thewire-characters-remaining-warning"); $("#thewire-submit-button").removeAttr('disabled', 'disabled'); $("#thewire-submit-button").removeClass('elgg-state-disabled'); } @@ -57,16 +57,16 @@ elgg.thewire.viewPrevious = function(event) { var postGuid = $link.attr("href").split("/").pop(); var $previousDiv = $("#thewire-previous-" + postGuid); - if ($link.html() == "<?php echo elgg_echo('thewire:hide'); ?>") { - $link.html("<?php echo elgg_echo('thewire:previous'); ?>"); - $link.attr("title", "<?php echo elgg_echo('thewire:previous:help'); ?>"); + if ($link.html() == elgg.echo('thewire:hide')) { + $link.html(elgg.echo('thewire:previous')); + $link.attr("title", elgg.echo('thewire:previous:help')); $previousDiv.slideUp(400); } else { - $link.html("<?php echo elgg_echo('thewire:hide'); ?>"); - $link.attr("title", "<?php echo elgg_echo('thewire:hide:help'); ?>"); + $link.html(elgg.echo('thewire:hide')); + $link.attr("title", elgg.echo('thewire:hide:help')); $.ajax({type: "GET", - url: "<?php echo $site_url . "ajax/view/thewire/previous"; ?>", + url: elgg.config.wwwroot + "ajax/view/thewire/previous", dataType: "html", cache: false, data: {guid: postGuid}, |