-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save button's visual (changed and unchanged states)
- Loading branch information
Showing
14 changed files
with
170,252 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,67 @@ | ||
webpackJsonp([6],{15:function(n,e,t){"use strict";var i=void 0!==window.jQuery?window.jQuery:null;n.exports=i},930:function(n,e,t){"use strict";var i=t(15);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function(){this._setupPinging(),this._super()},_setupPinging:function(){var e=function(n,e){(n.status>400||0==n.responseText)&&(window.open("Security/login")?alert("Please log in and then try again"):alert("Please enable pop-ups for this site"))};setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:e})},1e3*this.getPingIntervalSeconds())}})})}},[930]); | ||
<<<<<<< HEAD | ||
webpackJsonp([6],{15:function(n,e,t){"use strict";var i=void 0!==window.jQuery?window.jQuery:null;n.exports=i},930:function(n,e,t){"use strict";var i=t(15);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function(){this._setupPinging(),this._super()},_setupPinging:function(){var e=function(n,e){(n.status>400||0==n.responseText)&&(window.open("Security/login")?alert("Please log in and then try again"):alert("Please enable pop-ups for this site"))};setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:e})},1e3*this.getPingIntervalSeconds())}})})}},[930]); | ||
======= | ||
webpackJsonp([6],{ | ||
|
||
/***/ 16: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var jQuery = typeof window.jQuery !== 'undefined' ? window.jQuery : null; | ||
|
||
module.exports = jQuery; | ||
|
||
/***/ }), | ||
|
||
/***/ 944: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var _jQuery = __webpack_require__(16); | ||
|
||
var _jQuery2 = _interopRequireDefault(_jQuery); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
_jQuery2.default.entwine('ss.ping', function ($) { | ||
|
||
$('.cms-container').entwine({ | ||
PingIntervalSeconds: 5 * 60, | ||
|
||
onadd: function onadd() { | ||
this._setupPinging(); | ||
this._super(); | ||
}, | ||
|
||
_setupPinging: function _setupPinging() { | ||
var onSessionLost = function onSessionLost(xmlhttp, status) { | ||
if (xmlhttp.status > 400 || xmlhttp.responseText == 0) { | ||
if (window.open('Security/login')) { | ||
alert('Please log in and then try again'); | ||
} else { | ||
alert('Please enable pop-ups for this site'); | ||
} | ||
} | ||
}; | ||
|
||
setInterval(function () { | ||
$.ajax({ | ||
url: 'Security/ping', | ||
global: false, | ||
type: 'POST', | ||
complete: onSessionLost | ||
}); | ||
}, this.getPingIntervalSeconds() * 1000); | ||
} | ||
}); | ||
}); | ||
|
||
/***/ }) | ||
|
||
},[944]); | ||
//# sourceMappingURL=LeftAndMain.Ping.js.map | ||
>>>>>>> Save button's visual (changed and unchanged states) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
webpackJsonp([5],{15:function(n,t,e){"use strict";var i=void 0!==window.jQuery?window.jQuery:null;n.exports=i},931:function(n,t,e){"use strict";var i=e(15);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss",function(n){n(".import-form .advanced").entwine({onmatch:function(){this._super(),this.hide()},onunmatch:function(){this._super()}}),n(".import-form a.toggle-advanced").entwine({onclick:function(n){return this.parents("form:eq(0)").find(".advanced").toggle(),!1}})})}},[931]); | ||
<<<<<<< HEAD | ||
webpackJsonp([5],{15:function(n,t,e){"use strict";var i=void 0!==window.jQuery?window.jQuery:null;n.exports=i},931:function(n,t,e){"use strict";var i=e(15);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss",function(n){n(".import-form .advanced").entwine({onmatch:function(){this._super(),this.hide()},onunmatch:function(){this._super()}}),n(".import-form a.toggle-advanced").entwine({onclick:function(n){return this.parents("form:eq(0)").find(".advanced").toggle(),!1}})})}},[931]); | ||
======= | ||
webpackJsonp([5],{ | ||
|
||
/***/ 16: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var jQuery = typeof window.jQuery !== 'undefined' ? window.jQuery : null; | ||
|
||
module.exports = jQuery; | ||
|
||
/***/ }), | ||
|
||
/***/ 945: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var _jQuery = __webpack_require__(16); | ||
|
||
var _jQuery2 = _interopRequireDefault(_jQuery); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
_jQuery2.default.entwine('ss', function ($) { | ||
$('.import-form .advanced').entwine({ | ||
onmatch: function onmatch() { | ||
this._super(); | ||
|
||
this.hide(); | ||
}, | ||
onunmatch: function onunmatch() { | ||
this._super(); | ||
} | ||
}); | ||
|
||
$('.import-form a.toggle-advanced').entwine({ | ||
onclick: function onclick(e) { | ||
this.parents('form:eq(0)').find('.advanced').toggle(); | ||
return false; | ||
} | ||
}); | ||
}); | ||
|
||
/***/ }) | ||
|
||
},[945]); | ||
//# sourceMappingURL=MemberImportForm.js.map | ||
>>>>>>> Save button's visual (changed and unchanged states) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,209 @@ | ||
webpackJsonp([2],{100:function(e,t){e.exports=TinyMCEActionRegistrar},125:function(e,t){e.exports=ReactApollo},180:function(e,t){e.exports=InsertLinkModal},24:function(e,t){e.exports=i18n},45:function(e,t){e.exports=Injector},933:function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),a=n(r),l=i(100),o=n(l),s=i(0),d=n(s),u=i(25),c=n(u),m=i(125),f=i(27),p=n(f),k=i(180),g=i(45);o.default.addAction("sslink",{text:a.default._t("Admin.LINKLABEL_EMAIL","Link to email address"),onclick:function(e){return e.execCommand("sslinkemail")}}).addCommandWithUrlTest("sslinkemail",/^mailto:/);var h={init:function(e){e.addCommand("sslinkemail",function(){window.jQuery("#"+e.id).entwine("ss").openLinkEmailDialog()})}},_="insert-link__dialog-wrapper--email",A=(0,g.provideInjector)((0,k.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorEmailLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkEmailDialog:function(){var t=e("#"+_);t.length||(t=e('<div id="'+_+'" />'),e("body").append(t)),t.addClass("insert-link__dialog-wrapper"),t.setElement(this),t.open()}}),e("#"+_).entwine({renderModal:function(e){var t=this,i=ss.store,n=ss.apolloClient,r=function(){return t.close()},l=function(){return t.handleInsert.apply(t,arguments)},o=this.getOriginalAttributes();c.default.render(d.default.createElement(m.ApolloProvider,{store:i,client:n},d.default.createElement(A,{show:e,onInsert:l,onHide:r,title:a.default._t("Admin.LINK_EMAIL","Insert email link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--email",fileAttributes:o,identifier:"Admin.InsertLinkEmailModal"})),this[0])},getOriginalAttributes:function(){var t=this.getElement().getEditor(),i=e(t.getSelectedNode()),n=(i.attr("href")||"").split("?"),r=n[0].replace(/^mailto:/,"").split("?")[0];r.match(/.+@.+\..+/)||(r="");var a=n[1]?n[1].match(/subject=([^&]+)/):"";return{Link:r,Subject:a?a[1]:"",Description:i.attr("title")}},buildAttributes:function(e){var t=this._super(e),i="",n=t.href.replace(/^mailto:/,"").split("?")[0];return n.match(/.+@.+\..+/)||(n=""),n&&(i="mailto:"+n),i&&e.Subject&&(i=i+"?subject="+encodeURIComponent(e.Subject)),t.href=i,delete t.target,t}})}),tinymce.PluginManager.add("sslinkemail",function(e){return h.init(e)}),t.default=h}},[933]); | ||
<<<<<<< HEAD | ||
webpackJsonp([2],{100:function(e,t){e.exports=TinyMCEActionRegistrar},125:function(e,t){e.exports=ReactApollo},180:function(e,t){e.exports=InsertLinkModal},24:function(e,t){e.exports=i18n},45:function(e,t){e.exports=Injector},933:function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),a=n(r),l=i(100),o=n(l),s=i(0),d=n(s),u=i(25),c=n(u),m=i(125),f=i(27),p=n(f),k=i(180),g=i(45);o.default.addAction("sslink",{text:a.default._t("Admin.LINKLABEL_EMAIL","Link to email address"),onclick:function(e){return e.execCommand("sslinkemail")}}).addCommandWithUrlTest("sslinkemail",/^mailto:/);var h={init:function(e){e.addCommand("sslinkemail",function(){window.jQuery("#"+e.id).entwine("ss").openLinkEmailDialog()})}},_="insert-link__dialog-wrapper--email",A=(0,g.provideInjector)((0,k.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorEmailLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkEmailDialog:function(){var t=e("#"+_);t.length||(t=e('<div id="'+_+'" />'),e("body").append(t)),t.addClass("insert-link__dialog-wrapper"),t.setElement(this),t.open()}}),e("#"+_).entwine({renderModal:function(e){var t=this,i=ss.store,n=ss.apolloClient,r=function(){return t.close()},l=function(){return t.handleInsert.apply(t,arguments)},o=this.getOriginalAttributes();c.default.render(d.default.createElement(m.ApolloProvider,{store:i,client:n},d.default.createElement(A,{show:e,onInsert:l,onHide:r,title:a.default._t("Admin.LINK_EMAIL","Insert email link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--email",fileAttributes:o,identifier:"Admin.InsertLinkEmailModal"})),this[0])},getOriginalAttributes:function(){var t=this.getElement().getEditor(),i=e(t.getSelectedNode()),n=(i.attr("href")||"").split("?"),r=n[0].replace(/^mailto:/,"").split("?")[0];r.match(/.+@.+\..+/)||(r="");var a=n[1]?n[1].match(/subject=([^&]+)/):"";return{Link:r,Subject:a?a[1]:"",Description:i.attr("title")}},buildAttributes:function(e){var t=this._super(e),i="",n=t.href.replace(/^mailto:/,"").split("?")[0];return n.match(/.+@.+\..+/)||(n=""),n&&(i="mailto:"+n),i&&e.Subject&&(i=i+"?subject="+encodeURIComponent(e.Subject)),t.href=i,delete t.target,t}})}),tinymce.PluginManager.add("sslinkemail",function(e){return h.init(e)}),t.default=h}},[933]); | ||
======= | ||
<<<<<<< HEAD | ||
webpackJsonp([2],{100:function(e,t){e.exports=TinyMCEActionRegistrar},125:function(e,t){e.exports=ReactApollo},180:function(e,t){e.exports=InsertLinkModal},24:function(e,t){e.exports=i18n},45:function(e,t){e.exports=Injector},932:function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),a=n(r),l=i(100),o=n(l),s=i(0),d=n(s),u=i(25),c=n(u),m=i(125),f=i(27),p=n(f),k=i(180),g=i(45);o.default.addAction("sslink",{text:a.default._t("Admin.LINKLABEL_EMAIL","Link to email address"),onclick:function(e){return e.execCommand("sslinkemail")}}).addCommandWithUrlTest("sslinkemail",/^mailto:/);var h={init:function(e){e.addCommand("sslinkemail",function(){window.jQuery("#"+e.id).entwine("ss").openLinkEmailDialog()})}},_="insert-link__dialog-wrapper--email",A=(0,g.provideInjector)((0,k.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorEmailLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkEmailDialog:function(){var t=e("#"+_);t.length||(t=e('<div id="'+_+'" />'),e("body").append(t)),t.addClass("insert-link__dialog-wrapper"),t.setElement(this),t.open()}}),e("#"+_).entwine({renderModal:function(e){var t=this,i=ss.store,n=ss.apolloClient,r=function(){return t.close()},l=function(){return t.handleInsert.apply(t,arguments)},o=this.getOriginalAttributes();c.default.render(d.default.createElement(m.ApolloProvider,{store:i,client:n},d.default.createElement(A,{show:e,onInsert:l,onHide:r,title:a.default._t("Admin.LINK_EMAIL","Insert email link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--email",fileAttributes:o,identifier:"Admin.InsertLinkEmailModal"})),this[0])},getOriginalAttributes:function(){var t=this.getElement().getEditor(),i=e(t.getSelectedNode()),n=(i.attr("href")||"").split("?"),r=n[0].replace(/^mailto:/,"").split("?")[0];r.match(/.+@.+\..+/)||(r="");var a=n[1]?n[1].match(/subject=([^&]+)/):"";return{Link:r,Subject:a?a[1]:"",Description:i.attr("title")}},buildAttributes:function(e){var t=this._super(e),i="",n=t.href.replace(/^mailto:/,"").split("?")[0];return n.match(/.+@.+\..+/)||(n=""),n&&(i="mailto:"+n),i&&e.Subject&&(i=i+"?subject="+encodeURIComponent(e.Subject)),t.href=i,delete t.target,t}})}),tinymce.PluginManager.add("sslinkemail",function(e){return h.init(e)}),t.default=h}},[932]); | ||
======= | ||
webpackJsonp([2],{ | ||
|
||
/***/ 100: | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = TinyMCEActionRegistrar; | ||
|
||
/***/ }), | ||
|
||
/***/ 126: | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = ReactApollo; | ||
|
||
/***/ }), | ||
|
||
/***/ 182: | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = InsertLinkModal; | ||
|
||
/***/ }), | ||
|
||
/***/ 23: | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = i18n; | ||
|
||
/***/ }), | ||
|
||
/***/ 45: | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = Injector; | ||
|
||
/***/ }), | ||
|
||
/***/ 947: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
|
||
var _i18n = __webpack_require__(23); | ||
|
||
var _i18n2 = _interopRequireDefault(_i18n); | ||
|
||
var _TinyMCEActionRegistrar = __webpack_require__(100); | ||
|
||
var _TinyMCEActionRegistrar2 = _interopRequireDefault(_TinyMCEActionRegistrar); | ||
|
||
var _react = __webpack_require__(0); | ||
|
||
var _react2 = _interopRequireDefault(_react); | ||
|
||
var _reactDom = __webpack_require__(26); | ||
|
||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
|
||
var _reactApollo = __webpack_require__(126); | ||
|
||
var _jquery = __webpack_require__(27); | ||
|
||
var _jquery2 = _interopRequireDefault(_jquery); | ||
|
||
var _InsertLinkModal = __webpack_require__(182); | ||
|
||
var _Injector = __webpack_require__(45); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
var commandName = 'sslinkemail'; | ||
|
||
_TinyMCEActionRegistrar2.default.addAction('sslink', { | ||
text: _i18n2.default._t('Admin.LINKLABEL_EMAIL', 'Link to email address'), | ||
|
||
onclick: function onclick(editor) { | ||
return editor.execCommand(commandName); | ||
} | ||
}).addCommandWithUrlTest(commandName, /^mailto:/); | ||
|
||
var plugin = { | ||
init: function init(editor) { | ||
editor.addCommand(commandName, function () { | ||
var field = window.jQuery('#' + editor.id).entwine('ss'); | ||
|
||
field.openLinkEmailDialog(); | ||
}); | ||
} | ||
}; | ||
|
||
var modalId = 'insert-link__dialog-wrapper--email'; | ||
var sectionConfigKey = 'SilverStripe\\Admin\\LeftAndMain'; | ||
var formName = 'EditorEmailLink'; | ||
var InsertLinkEmailModal = (0, _Injector.provideInjector)((0, _InsertLinkModal.createInsertLinkModal)(sectionConfigKey, formName)); | ||
|
||
_jquery2.default.entwine('ss', function ($) { | ||
$('textarea.htmleditor').entwine({ | ||
openLinkEmailDialog: function openLinkEmailDialog() { | ||
var dialog = $('#' + modalId); | ||
|
||
if (!dialog.length) { | ||
dialog = $('<div id="' + modalId + '" />'); | ||
$('body').append(dialog); | ||
} | ||
dialog.addClass('insert-link__dialog-wrapper'); | ||
|
||
dialog.setElement(this); | ||
dialog.open(); | ||
} | ||
}); | ||
|
||
$('#' + modalId).entwine({ | ||
renderModal: function renderModal(show) { | ||
var _this = this; | ||
|
||
var store = ss.store; | ||
var client = ss.apolloClient; | ||
var handleHide = function handleHide() { | ||
return _this.close(); | ||
}; | ||
var handleInsert = function handleInsert() { | ||
return _this.handleInsert.apply(_this, arguments); | ||
}; | ||
var attrs = this.getOriginalAttributes(); | ||
|
||
_reactDom2.default.render(_react2.default.createElement( | ||
_reactApollo.ApolloProvider, | ||
{ store: store, client: client }, | ||
_react2.default.createElement(InsertLinkEmailModal, { | ||
show: show, | ||
onInsert: handleInsert, | ||
onHide: handleHide, | ||
title: _i18n2.default._t('Admin.LINK_EMAIL', 'Insert email link'), | ||
bodyClassName: 'modal__dialog', | ||
className: 'insert-link__dialog-wrapper--email', | ||
fileAttributes: attrs, | ||
identifier: 'Admin.InsertLinkEmailModal' | ||
}) | ||
), this[0]); | ||
}, | ||
getOriginalAttributes: function getOriginalAttributes() { | ||
var editor = this.getElement().getEditor(); | ||
var node = $(editor.getSelectedNode()); | ||
|
||
var hrefParts = (node.attr('href') || '').split('?'); | ||
|
||
var email = hrefParts[0].replace(/^mailto:/, '').split('?')[0]; | ||
|
||
if (!email.match(/.+@.+\..+/)) { | ||
email = ''; | ||
} | ||
|
||
var subjectMatch = hrefParts[1] ? hrefParts[1].match(/subject=([^&]+)/) : ''; | ||
var subject = subjectMatch ? subjectMatch[1] : ''; | ||
|
||
return { | ||
Link: email, | ||
Subject: subject, | ||
Description: node.attr('title') | ||
}; | ||
}, | ||
buildAttributes: function buildAttributes(data) { | ||
var attributes = this._super(data); | ||
|
||
var href = ''; | ||
|
||
var email = attributes.href.replace(/^mailto:/, '').split('?')[0]; | ||
|
||
if (!email.match(/.+@.+\..+/)) { | ||
email = ''; | ||
} | ||
|
||
if (email) { | ||
href = 'mailto:' + email; | ||
} | ||
if (href && data.Subject) { | ||
href = href + '?subject=' + encodeURIComponent(data.Subject); | ||
} | ||
attributes.href = href; | ||
|
||
delete attributes.target; | ||
|
||
return attributes; | ||
} | ||
}); | ||
}); | ||
|
||
tinymce.PluginManager.add(commandName, function (editor) { | ||
return plugin.init(editor); | ||
}); | ||
exports.default = plugin; | ||
|
||
/***/ }) | ||
|
||
},[947]); | ||
//# sourceMappingURL=TinyMCE_sslink-email.js.map | ||
>>>>>>> Save button's visual (changed and unchanged states) | ||
>>>>>>> Save button's visual (changed and unchanged states) |
Oops, something went wrong.