Skip to content

Commit e45cd85

Browse files
committed
update inline text item edit revision floating title when revision changes
1 parent 33c5cab commit e45cd85

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

framework/modules/text/views/text/showall_inline.bootstrap.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
if (msg.replyCode == '200') {
187187
data = $.parseJSON(msg.data);
188188
if (workflow) {
189-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
189+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
190190
if (!data.approved) {
191191
$('#text-' + data.id).addClass('unapproved');
192192
}
@@ -237,7 +237,7 @@
237237
if (msg.replyCode == '200') {
238238
data = $.parseJSON(msg.data);
239239
if (workflow) {
240-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
240+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
241241
if (!data.approved) {
242242
$('#text-' + data.id).addClass('unapproved');
243243
}
@@ -447,7 +447,7 @@
447447
if (msg.replyCode == '200') {
448448
data = $.parseJSON(msg.data);
449449
if (workflow) {
450-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
450+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
451451
if (!data.approved) {
452452
$('#text-' + data.id).addClass('unapproved');
453453
}
@@ -507,7 +507,7 @@
507507
if (msg.replyCode == '200') {
508508
data = $.parseJSON(msg.data);
509509
if (workflow) {
510-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
510+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
511511
if (!data.approved) {
512512
$('#text-' + data.id).addClass('unapproved');
513513
}

framework/modules/text/views/text/showall_inline.bootstrap3.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
if (msg.replyCode == '200') {
192192
data = $.parseJSON(msg.data);
193193
if (workflow) {
194-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
194+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
195195
if (!data.approved) {
196196
$('#text-' + data.id).addClass('unapproved');
197197
}
@@ -245,7 +245,7 @@
245245
if (msg.replyCode == '200') {
246246
data = $.parseJSON(msg.data);
247247
if (workflow) {
248-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
248+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
249249
if (!data.approved) {
250250
$('#text-' + data.id).addClass('unapproved');
251251
}
@@ -455,7 +455,7 @@
455455
if (msg.replyCode == '200') {
456456
data = $.parseJSON(msg.data);
457457
if (workflow) {
458-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
458+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
459459
if (!data.approved) {
460460
$('#text-' + data.id).addClass('unapproved');
461461
}
@@ -515,7 +515,7 @@
515515
if (msg.replyCode == '200') {
516516
data = $.parseJSON(msg.data);
517517
if (workflow) {
518-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
518+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
519519
if (!data.approved) {
520520
$('#text-' + data.id).addClass('unapproved');
521521
}

framework/modules/text/views/text/showall_inline.bootstrap4.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
if (msg.replyCode == '200') {
189189
data = $.parseJSON(msg.data);
190190
if (workflow) {
191-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
191+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
192192
if (!data.approved) {
193193
$('#text-' + data.id).addClass('unapproved');
194194
}
@@ -242,7 +242,7 @@
242242
if (msg.replyCode == '200') {
243243
data = $.parseJSON(msg.data);
244244
if (workflow) {
245-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
245+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
246246
if (!data.approved) {
247247
$('#text-' + data.id).addClass('unapproved');
248248
}
@@ -452,7 +452,7 @@
452452
if (msg.replyCode == '200') {
453453
data = $.parseJSON(msg.data);
454454
if (workflow) {
455-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
455+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
456456
if (!data.approved) {
457457
$('#text-' + data.id).addClass('unapproved');
458458
}
@@ -512,7 +512,7 @@
512512
if (msg.replyCode == '200') {
513513
data = $.parseJSON(msg.data);
514514
if (workflow) {
515-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
515+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
516516
if (!data.approved) {
517517
$('#text-' + data.id).addClass('unapproved');
518518
}

framework/modules/text/views/text/showall_inline.bootstrap5.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
if (msg.replyCode == '200') {
199199
data = $.parseJSON(msg.data);
200200
if (workflow) {
201-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
201+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
202202
if (!data.approved) {
203203
$('#text-' + data.id).addClass('unapproved');
204204
}
@@ -252,7 +252,7 @@
252252
if (msg.replyCode == '200') {
253253
data = $.parseJSON(msg.data);
254254
if (workflow) {
255-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
255+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
256256
if (!data.approved) {
257257
$('#text-' + data.id).addClass('unapproved');
258258
}
@@ -462,7 +462,7 @@
462462
if (msg.replyCode == '200') {
463463
data = $.parseJSON(msg.data);
464464
if (workflow) {
465-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
465+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
466466
if (!data.approved) {
467467
$('#text-' + data.id).addClass('unapproved');
468468
}
@@ -522,7 +522,7 @@
522522
if (msg.replyCode == '200') {
523523
data = $.parseJSON(msg.data);
524524
if (workflow) {
525-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
525+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
526526
if (!data.approved) {
527527
$('#text-' + data.id).addClass('unapproved');
528528
}

framework/modules/text/views/text/showall_inline.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
if (msg.replyCode == '200') {
177177
data = $.parseJSON(msg.data);
178178
if (workflow) {
179-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
179+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
180180
if (!data.approved) {
181181
$('#text-' + data.id).addClass('unapproved');
182182
}
@@ -227,7 +227,7 @@
227227
if (msg.replyCode == '200') {
228228
data = $.parseJSON(msg.data);
229229
if (workflow) {
230-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
230+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
231231
if (!data.approved) {
232232
$('#text-' + data.id).addClass('unapproved');
233233
}
@@ -437,7 +437,7 @@
437437
if (msg.replyCode == '200') {
438438
data = $.parseJSON(msg.data);
439439
if (workflow) {
440-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
440+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
441441
if (!data.approved) {
442442
$('#text-' + data.id).addClass('unapproved');
443443
}
@@ -496,7 +496,7 @@
496496
success: function(msg) {
497497
if (msg.replyCode == '200') {
498498
if (workflow) {
499-
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id);
499+
$('#text-' + data.id + ' span.revisionnum.approval').html(data.revision_id).attr('title','Viewing Revision #' + data.revision_id);
500500
if (!data.approved) {
501501
$('#text-' + data.id).addClass('unapproved');
502502
}

0 commit comments

Comments
 (0)