Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<javascript app="forums">
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.flow.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000100"><![CDATA[/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.flow.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -81,7 +81,8 @@
|
||||
$( document ).trigger( 'updateTableURL', { [this.urlParam] : _.uniq( _.values( this._ids ) ).join(',') } );
|
||||
}
|
||||
|
||||
this._button = $('body').find('[data-role="fluidForumMobileDesc"]');
|
||||
this._button = $('body').find("[data-ipsDialog-content='#elFluidFormFilters']");
|
||||
this._buttonText = $('body').find('[data-role="fluidForumMobileDesc"]');
|
||||
this._updateButtonText();
|
||||
},
|
||||
|
||||
@@ -259,20 +260,23 @@
|
||||
}
|
||||
return false;
|
||||
});
|
||||
var text = '';
|
||||
var text = '', buttonClass = '';
|
||||
|
||||
// If the counts are the same, we know we've selected all of them
|
||||
if( blobs.length == selectedBlobRows.length || selectedBlobRows.length === 0 ){
|
||||
text = ips.getString('topicsFromAllForums');
|
||||
buttonClass = 'ipsButton--inherit';
|
||||
} else {
|
||||
text = ips.pluralize( ips.getString( 'topicsFromXForums' ), selectedBlobRows.length );
|
||||
buttonClass = 'ipsButton--secondary';
|
||||
}
|
||||
|
||||
this._button.text( text );
|
||||
this._buttonText.text( text );
|
||||
this._button.removeClass("ipsButton--inherit ipsButton--secondary").addClass(buttonClass);
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.forumList.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000100"><![CDATA[/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.forumList.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -340,7 +344,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.forumPage.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000100"><![CDATA[/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.forumPage.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000100"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -397,7 +401,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.hovercard.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000100">/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/forum" javascript_name="ips.forum.hovercard.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000100">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -447,7 +451,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="forums" javascript_location="admin" javascript_path="controllers/settings" javascript_name="ips.settings.archiveRules.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050"><![CDATA[/**
|
||||
<file javascript_app="forums" javascript_location="admin" javascript_path="controllers/settings" javascript_name="ips.settings.archiveRules.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000050"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -512,7 +516,7 @@
|
||||
});
|
||||
}(jQuery, _));
|
||||
]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.activity.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050">/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.activity.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000050">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -534,147 +538,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.answers.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
* ips.topic.answers.js - Profile body controller
|
||||
*
|
||||
* Author: Rikki Tissier
|
||||
*/
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('forums.front.topic.answers', {
|
||||
|
||||
ajaxObj: null,
|
||||
|
||||
/**
|
||||
* Initialize controller events
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
initialize: function () {
|
||||
this.on( 'click', 'a.cAnswerRate', this.rate );
|
||||
},
|
||||
|
||||
/**
|
||||
* Rate answers
|
||||
*
|
||||
* @param {event} e Event object
|
||||
* @returns {void}
|
||||
*/
|
||||
rate: function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var self = this;
|
||||
var clicked = $( e.currentTarget );
|
||||
|
||||
if( this.scope.find('.cAnswerRate_up').is('.i-color_positive') ) {
|
||||
var currentVote = 'positive';
|
||||
}
|
||||
else if( this.scope.find('.cAnswerRate_down').is('.i-color_negative') ) {
|
||||
var currentVote = 'negative';
|
||||
}
|
||||
else {
|
||||
var currentVote = false;
|
||||
}
|
||||
|
||||
var positive = clicked.hasClass('cAnswerRate_up');
|
||||
var voteCount = this.scope.find('[data-role="voteCount"]');
|
||||
var currentVotes = parseInt( voteCount.attr('data-voteCount') );
|
||||
|
||||
var newVoteCount = 0;
|
||||
var setPositive = false;
|
||||
var setNegative = false;
|
||||
|
||||
// Do we have a current vote?
|
||||
if( currentVote !== false ) {
|
||||
// If our current vote is positive and we clicked it again, we're removing our vote
|
||||
if( positive && currentVote == 'positive' ) {
|
||||
newVoteCount = currentVotes - 1;
|
||||
}
|
||||
// If our current vote is negative and we clicked it again, we're removing our vote
|
||||
else if( !positive && currentVote == 'negative' ) {
|
||||
newVoteCount = currentVotes + 1;
|
||||
}
|
||||
// Otherwise if our current vote is positive and we clicked negative...
|
||||
else if( !positive && currentVote == 'positive' ) {
|
||||
newVoteCount = currentVotes - 2;
|
||||
setNegative = true;
|
||||
}
|
||||
// Or our current vote is negative and we clicked positive
|
||||
else if( positive && currentVote == 'negative' ) {
|
||||
newVoteCount = currentVotes + 2;
|
||||
setPositive = true;
|
||||
}
|
||||
}
|
||||
// Otherwise if we clicked the positive icon...
|
||||
else if( positive ) {
|
||||
newVoteCount = currentVotes + 1;
|
||||
setPositive = true;
|
||||
}
|
||||
// Or we clicked the negative icon
|
||||
else {
|
||||
newVoteCount = currentVotes - 1;
|
||||
setNegative = true;
|
||||
}
|
||||
|
||||
this.setStyles( setPositive, setNegative );
|
||||
|
||||
voteCount
|
||||
.toggleClass( 'i-color_positive', setPositive )
|
||||
.toggleClass( 'i-color_negative', setNegative )
|
||||
.text( newVoteCount )
|
||||
.attr( 'data-voteCount', newVoteCount );
|
||||
|
||||
// Send request
|
||||
if( this.ajaxObj && _.isFunction( this.ajaxObj.abort ) ){
|
||||
this.ajaxObj.abort();
|
||||
}
|
||||
|
||||
this.ajaxObj = ips.getAjax()( clicked.attr('href') )
|
||||
.done( function (response) {
|
||||
|
||||
Debug.log( response );
|
||||
|
||||
voteCount.text( response.votes );
|
||||
self.scope.find('.i-color_soft').text( ips.pluralize( ips.getString( 'votes_no_number' ), response.votes ) );
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Reset CSS classes
|
||||
*
|
||||
* @param {bool} Set positive
|
||||
* @param {bool} Set negative
|
||||
*/
|
||||
setStyles: function( setPositive, setNegative ) {
|
||||
this.scope.find('.cAnswerRate_up').toggleClass( 'i-color_positive', setPositive );
|
||||
this.scope.find('.cAnswerRate_down').toggleClass( 'i-color_negative', setNegative );
|
||||
this.scope.toggleClass( 'cRatingColumn_up', setPositive ).toggleClass( 'cRatingColumn_down', setNegative );
|
||||
|
||||
// Reset tooltips
|
||||
this.scope.find('a.cAnswerRate_up').removeAttr( '_title' );
|
||||
this.scope.find('a.cAnswerRate_down').removeAttr( '_title' );
|
||||
|
||||
if( setPositive ) {
|
||||
this.scope.find('a.cAnswerRate_up').attr( 'title', ips.getString('js_remove_your_vote') );
|
||||
}
|
||||
else {
|
||||
this.scope.find('a.cAnswerRate_up').attr( 'title', ips.getString('js_vote_answer_up') );
|
||||
}
|
||||
|
||||
if( setNegative ) {
|
||||
this.scope.find('a.cAnswerRate_down').attr( 'title', ips.getString('js_remove_your_vote') );
|
||||
}
|
||||
else {
|
||||
this.scope.find('a.cAnswerRate_down').attr( 'title', ips.getString('js_vote_answer_down') );
|
||||
}
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.reply.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050">/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.reply.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000050">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -703,7 +567,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.solved.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050"><![CDATA[/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.solved.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000050"><![CDATA[/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -741,7 +605,7 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.view.js" javascript_type="controller" javascript_version="5000074" javascript_position="1000050">/**
|
||||
<file javascript_app="forums" javascript_location="front" javascript_path="controllers/topic" javascript_name="ips.topic.view.js" javascript_type="controller" javascript_version="5001302" javascript_position="1000050">/**
|
||||
* Invision Community
|
||||
* (c) Invision Power Services, Inc. - https://www.invisioncommunity.com
|
||||
*
|
||||
@@ -815,4 +679,19 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<order app="global" path="/dev/js//framework/">templates
|
||||
common/ips.loader.js
|
||||
common/ui
|
||||
common/utils
|
||||
common
|
||||
controllers</order>
|
||||
<order app="global" path="/dev/js//library/">underscore
|
||||
jquery
|
||||
mustache
|
||||
Debug.js
|
||||
app.js</order>
|
||||
<order app="global" path="/dev/js//library//jquery">jquery.js
|
||||
jquery-migrate.js</order>
|
||||
<order app="global" path="/dev/js//library//linkify">linkify.min.js
|
||||
linkify-jquery.min.js</order>
|
||||
</javascript>
|
||||
Reference in new issue
Block a user