Skip to content

Commit

Permalink
Dev: Translateable tool tips
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 28, 2016
1 parent 32cdfc6 commit d339245
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
35 changes: 16 additions & 19 deletions application/views/admin/emailtemplates/emailtemplates_view.php
Expand Up @@ -6,26 +6,23 @@
<script type='text/javascript'>
var sReplaceTextConfirmation='<?php eT("This will replace the existing text. Continue?","js"); ?>';
var sKCFinderLanguage='<?php echo sTranslateLangCode2CK(App()->language); ?>';


$(document).ready(function () {
$('button.add-attachment').click(function(e)
{
e.preventDefault();
var target = $(this).parent().parent().parent().find('table');
console.log("target = ");
console.log(target);
openKCFinder_singleFile(target);


var LS = LS || {}; // namespace
LS.lang = LS.lang || {}; // object holding translations
LS.lang['Remove attachment'] = '<?php echo eT("Remove attachment"); ?>';
LS.lang['Edit relevance equation'] = '<?php echo eT("Edit relevance equation"); ?>';

$(document).ready(function () {
$('button.add-attachment').click(function(e)
{
e.preventDefault();
var target = $(this).parent().parent().parent().find('table');
console.log("target = ");
console.log(target);
openKCFinder_singleFile(target);

});
});



});




</script>

<div class="side-body">
Expand Down
4 changes: 2 additions & 2 deletions scripts/admin/emailtemplates.js
Expand Up @@ -93,13 +93,13 @@ function addAttachment(target, url, relevance, size)
// Ac8ions
// TODO: Move edit relevance equation and change file into actions
baserow += '<td>';
baserow += '<span title="Remove attachment" class="ui-pg-button btnattachmentremove glyphicon glyphicon-trash text-warning" data-toggle="tooltip" data-placement="bottom" data-original-title="Remove attachement"></span>';
baserow += '<span title="' + LS.lang['Remove attachment'] + '" class="ui-pg-button btnattachmentremove glyphicon glyphicon-trash text-warning" data-toggle="tooltip" data-placement="bottom" data-original-title="' + LS.lang['Remove attachment'] + '"></span>';
baserow += '</td>';

baserow += '<td><span class="filename"></span><input class="filename" type="hidden"></td>';
baserow += '<td><span class="filesize"></span></td>';
baserow += '<td><span class="relevance"></span>'
baserow += '<span title="Edit relevance equation" class="edit-relevance-equation ui-pg-button icon-edit" data-toggle="tooltip" data-placement="bottom" data-original-title="Edit relevance equation"></span>';
baserow += '<span title="' + LS.lang['Edit relevance equation'] + '" class="edit-relevance-equation ui-pg-button icon-edit" data-toggle="tooltip" data-placement="bottom" data-original-title="' + LS.lang['Edit relevance equation'] + '"></span>';
baserow += '<input class="relevance" type="hidden"></td>';
baserow += '</tr>';

Expand Down

0 comments on commit d339245

Please sign in to comment.