mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
Update close control view in Chat JavaScript application
Rename close method to closeThread to not override Marionette.js View.close method.
This commit is contained in:
parent
e4844832f1
commit
5d0ac36fa4
@ -5,4 +5,4 @@
|
||||
Copyright (c) 2005-2011 Mibew Messenger Community
|
||||
License: http://mibew.org/license.php
|
||||
*/
|
||||
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"close"}),close:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
|
||||
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
|
||||
|
@ -145,7 +145,7 @@ c=b.Objects.Models.user;return[{"function":"updateMessages",arguments:{"return":
|
||||
Copyright (c) 2005-2011 Mibew Messenger Community
|
||||
License: http://mibew.org/license.php
|
||||
*/
|
||||
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"close"}),close:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
|
||||
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
|
||||
/*
|
||||
This file is part of Mibew Messenger project.
|
||||
http://mibew.org
|
||||
|
@ -30,14 +30,14 @@
|
||||
{},
|
||||
Mibew.Views.Control.prototype.events,
|
||||
{
|
||||
'click': 'close'
|
||||
'click': 'closeThread'
|
||||
}
|
||||
),
|
||||
|
||||
/**
|
||||
* Display confirmation dialog and close chat window
|
||||
*/
|
||||
close: function() {
|
||||
closeThread: function() {
|
||||
// Show confirmation message if can
|
||||
var confirmMessage = Mibew.Localization.get('chat.close.confirmation');
|
||||
if (confirmMessage !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user