Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -1,7 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<javascript app="downloads">
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/submit" javascript_name="ips.submit.main.js" javascript_type="controller" javascript_version="101012" javascript_position="1000050"><![CDATA[/**
|
||||
* IPS Social Suite 4
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/submit" javascript_name="ips.submit.linkedScreenshots.js" javascript_type="controller" javascript_version="101093" javascript_position="1000050">/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2013 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.submit.linkedScreenshots.js - Controller to handle linked screenshots
|
||||
*
|
||||
* Author: Mark Wade
|
||||
*/
|
||||
;( function($, _, undefined){
|
||||
"use strict";
|
||||
|
||||
ips.controller.register('downloads.front.submit.linkedScreenshots', {
|
||||
|
||||
initialize: function () {
|
||||
this.on( 'click', '[data-action="addField"]', this.addFieldButton );
|
||||
this.on( 'click', '[data-action="removeField"]', this.removeField );
|
||||
this.setup();
|
||||
},
|
||||
|
||||
/**
|
||||
* Setup method
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
setup: function () {
|
||||
var initialValues = $.parseJSON( $(this.scope).attr('data-initialValue') );
|
||||
|
||||
if( initialValues == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var i;
|
||||
for ( i in initialValues.values ) {
|
||||
this.addField( i, initialValues.values[i], i == initialValues.default );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Add a field
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
addField: function ( id, value, isDefault ) {
|
||||
$(this.scope).find('[data-role="fieldsArea"]').append( ips.templates.render( 'downloads.submit.linkedScreenshot', {
|
||||
'name': $(this.scope).attr('data-name'),
|
||||
'id': id,
|
||||
'value': value,
|
||||
'extra': isDefault ? 'checked' : ''
|
||||
}) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove a field
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
removeField: function ( e ) {
|
||||
e.preventDefault();
|
||||
$(e.currentTarget).closest('li').remove();
|
||||
},
|
||||
|
||||
/**
|
||||
* Respond to add button
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
addFieldButton: function () {
|
||||
this.addField( 'linked_' + new Date().getTime(), '', false );
|
||||
}
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/submit" javascript_name="ips.submit.main.js" javascript_type="controller" javascript_version="101093" javascript_position="1000050"><![CDATA[/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2013 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.submit.main.js - Submit controller
|
||||
@@ -165,6 +237,8 @@
|
||||
} else if( data.uploader == 'screenshots' ){
|
||||
this._doneScreenshotStep();
|
||||
}
|
||||
} else {
|
||||
this.scope.find('[data-role="submitForm"]').prop( 'disabled', false );
|
||||
}
|
||||
},
|
||||
|
||||
@@ -233,9 +307,6 @@
|
||||
self._ui.progressBar.find('.ipsProgressBar').removeClass('ipsProgressBar_animated');
|
||||
self._progressbarTimeout = null;
|
||||
}, 300 );
|
||||
|
||||
// Make the continue button available
|
||||
this.scope.find('[data-role="submitForm"]').prop( 'disabled', false );
|
||||
}
|
||||
},
|
||||
|
||||
@@ -367,8 +438,10 @@
|
||||
$( document ).trigger('contentChange', [ self._ui.fileInfo ] );
|
||||
});
|
||||
}
|
||||
|
||||
this.scope.find('[data-role="submitForm"]').prop( 'disabled', false );
|
||||
if( !this._requireScreenshots )
|
||||
{
|
||||
this.scope.find('[data-role="submitForm"]').prop( 'disabled', false );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -377,7 +450,14 @@
|
||||
* @returns {void}
|
||||
*/
|
||||
_doneScreenshotStep: function () {
|
||||
ips.utils.anim.go( 'fadeIn', this._ui.fileInfo );
|
||||
var self = this;
|
||||
|
||||
ips.utils.anim.go( 'fadeIn', this._ui.fileInfo )
|
||||
.done( function () {
|
||||
$( document ).trigger('contentChange', [ self._ui.fileInfo ] );
|
||||
});
|
||||
|
||||
this.scope.find('[data-role="submitForm"]').prop( 'disabled', false );
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -395,8 +475,8 @@
|
||||
}
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/view" javascript_name="ips.view.changeLog.js" javascript_type="controller" javascript_version="101012" javascript_position="1000100"><![CDATA[/**
|
||||
* IPS Social Suite 4
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/view" javascript_name="ips.view.changeLog.js" javascript_type="controller" javascript_version="101093" javascript_position="1000100"><![CDATA[/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2013 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.view.changeLog.js - Changelog controller
|
||||
@@ -439,7 +519,6 @@
|
||||
changeVersion: function (e, data) {
|
||||
data.originalEvent.preventDefault();
|
||||
|
||||
var self = this;
|
||||
var url = data.menuElem.find('[data-ipsMenuValue="' + data.selectedItemID + '"] > a').attr('href');
|
||||
|
||||
// Update page URL
|
||||
@@ -448,7 +527,7 @@
|
||||
version: data.selectedItemID
|
||||
}, document.title, url );
|
||||
|
||||
this._loadVersion( url, data.selectedItemID );
|
||||
this._loadVersion( url, data.menuElem.find('[data-ipsMenuValue="' + data.selectedItemID + '"]').attr('data-changelogTitle') );
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -517,8 +596,8 @@
|
||||
|
||||
});
|
||||
}(jQuery, _));]]></file>
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/view" javascript_name="ips.view.download.js" javascript_type="controller" javascript_version="101012" javascript_position="1000100">/**
|
||||
* IPS Social Suite 4
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="controllers/view" javascript_name="ips.view.download.js" javascript_type="controller" javascript_version="101093" javascript_position="1000100">/**
|
||||
* IPS Community Suite 4
|
||||
* (c) 2013 Invision Power Services - http://www.invisionpower.com
|
||||
*
|
||||
* ips.view.download.js - Download popup controller
|
||||
@@ -602,6 +681,8 @@
|
||||
* @returns {void}
|
||||
*/
|
||||
doDownload: function (e) {
|
||||
this.scope.closest('.ipsDialog').trigger('closeDialog');
|
||||
|
||||
if ( $( e.currentTarget ).attr('data-wait') ) {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -631,18 +712,16 @@
|
||||
.fail( function () {
|
||||
window.location = $(e.currentTarget).attr('href');
|
||||
})
|
||||
} else {
|
||||
this._closeDialog( $( e.currentTarget ).attr('href') );
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}(jQuery, _));</file>
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="templates" javascript_name="ips.templates.submit.js" javascript_type="template" javascript_version="101012" javascript_position="1000150"><![CDATA[/* VIEW TEMPLATES */
|
||||
<file javascript_app="downloads" javascript_location="front" javascript_path="templates" javascript_name="ips.templates.submit.js" javascript_type="template" javascript_version="101093" javascript_position="1000150"><![CDATA[/* VIEW TEMPLATES */
|
||||
ips.templates.set('downloads.submit.screenshot', " \
|
||||
<div class='ipsGrid_span3 ipsAttach ipsImageAttach ipsPad_half ipsAreaBackground_light' id='{{id}}' data-role='file' data-fileid='{{id}}' data-fullsizeurl='{{imagesrc}}' data-thumbnailurl='{{thumbnail}}' data-isImage='1'>\
|
||||
<ul class='ipsList_inline ipsImageAttach_controls'>\
|
||||
<li><input type='radio' name='{{field_name}}_primary_screenshot' id='{{field_name}}_primary_screenshot_{{id}}' value='{{id}}' title='{{#lang}}makePrimaryScreenshot{{/lang}}' data-ipsTooltip {{#default}}checked{{/default}}></li>\
|
||||
<li><input type='radio' name='{{field_name}}_primary_screenshot' id='{{field_name}}_primary_screenshot_{{id}}' value='{{id}}' title='{{#lang}}makePrimaryScreenshot{{/lang}}' {{#default}}checked{{/default}}></li>\
|
||||
<li class='ipsPos_right' data-role='deleteFileWrapper'>\
|
||||
<input type='hidden' name='{{field_name}}_keep[{{id}}]' value='1'>\
|
||||
<a href='#' data-role='deleteFile' class='ipsButton ipsButton_verySmall ipsButton_light' data-ipsTooltip title='{{#lang}}removeScreenshot{{/lang}}'><i class='fa fa-trash-o'></i></a>\
|
||||
@@ -666,8 +745,21 @@ ips.templates.set('downloads.submit.screenshot', " \
|
||||
|
||||
ips.templates.set('downloads.submit.screenshotWrapper', " \
|
||||
<div class='ipsGrid ipsGrid_collapsePhone' data-ipsGrid data-ipsGrid-minItemSize='150' data-ipsGrid-maxItemSize='250'>{{{content}}}</div>\
|
||||
");
|
||||
|
||||
ips.templates.set('downloads.submit.linkedScreenshot', " \
|
||||
<li class='cDownloadsLinkedScreenshotItem'>\
|
||||
<input type='url' name='{{name}}[{{id}}]' value='{{value}}'>\
|
||||
<div class='cDownloadsLinkedScreenshotItem_block'>\
|
||||
<input type='radio' name='screenshots_primary_screenshot' value='{{id}}' title='{{#lang}}makePrimaryScreenshot{{/lang}}' data-ipsTooltip {{extra}}>\
|
||||
</div>\
|
||||
<div class='cDownloadsLinkedScreenshotItem_block'>\
|
||||
<a href='#' data-action='removeField' title='{{#lang}}removeScreenshot{{/lang}}' data-ipsTooltip><i class='fa fa-times'></i></a>\
|
||||
</div>\
|
||||
</li>\
|
||||
");]]></file>
|
||||
<order app="global" path="/dev/js//framework/">templates
|
||||
common/ips.loader.js
|
||||
common/ui
|
||||
common/utils
|
||||
common
|
||||
@@ -681,6 +773,4 @@ app.js</order>
|
||||
<order app="global" path="/dev/js//library//jquery">jquery.js
|
||||
jquery.history.js
|
||||
jquery.transform.js</order>
|
||||
<order app="global" path="/dev/js//library//xregexp">xregexp-all.js
|
||||
xregexp-lookbehind.js</order>
|
||||
</javascript>
|
||||
Reference in new issue
Block a user