From 093725df9e654bcd414be132f6c1f736f03dd176 Mon Sep 17 00:00:00 2001 From: Bart Koelewijn Date: Tue, 24 Oct 2017 13:53:22 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Add=20the=20js-sortable-move=20class?= =?UTF-8?q?=20to=20the=20right=20list=20of=20items=20that=20shouldn?= =?UTF-8?q?=E2=80=99t=20trigger=20the=20anchors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Resources/public/javascript/app.bundle.js | 2 +- Resources/public/javascript/app.bundle.js.map | 2 +- Resources/public/javascript/theme.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Resources/public/javascript/app.bundle.js b/Resources/public/javascript/app.bundle.js index 82f0e08..354fddd 100644 --- a/Resources/public/javascript/app.bundle.js +++ b/Resources/public/javascript/app.bundle.js @@ -1,2 +1,2 @@ -!function(t){function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";e(1),e(2),e(3),e(4),e(5)},function(t,n){"use strict";$(function(){$(document).on("pixSortableBehaviorBundle.success",function(t,n){$("body").append('
%s
'.replace("%s",n.result))}),$(document).on("pixSortableBehaviorBundle.error",function(t,n){$("body").append('
%s
'.replace("%s",n.result))}),$(".date input").on("click",function(){$(this).next("span").click()}),$("#username").focus(),$(".box-body table tr:not(.sonata-ba-list-field-header) a.edit_link .js-sortable-move").each(function(t,n){n=$(n);var e=n.attr("href");n.closest("tr").on("mouseup touchend",function(t){$(t.target).is("a, button")||(t.ctrlKey||t.metaKey||2==t.which?window.open(e):3!=t.which&&(window.location=e))})})})},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(n){e(this,t),this.item=n,this.item.find('input[type="checkbox"]').on("change",this.change.bind(this))}return t.prototype.change=function(){this.item.toggleClass("is_checked")},t}();$(function(){$(".vich-image, .cropper").each(function(t,n){new i($(n))})})},function(t,n){"use strict";function e(){setTimeout(function(){i()},100)}function i(){o.filter(":checked").length?s.addClass("is-visible"):s.removeClass("is-visible")}var o=void 0,s=void 0;$(function(){s=$(".box-footer .form-inline"),s.length&&(o=$('#list_batch_checkbox, .sonata-ba-list input[type="checkbox"]'),o.on("change",e),e())})},function(t,n){"use strict";function e(){$(".filter-box").stop().slideToggle()}$(function(){var t=$(".dropdown.sonata-actions");$(".content-header").append('
'),$(".sonata-filter-form").appendTo(".filter-box"),t.on("click",e),t.find("ul").css("display","none")})},function(t,n){"use strict";$(function(){$(".delete_link, .sonata-ba-form-actions .btn-danger").magnificPopup({type:"ajax",closeBtnInside:!0,mainClass:"mfp-fade"})})}]); +!function(t){function n(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";e(1),e(2),e(3),e(4),e(5)},function(t,n){"use strict";$(function(){$(document).on("pixSortableBehaviorBundle.success",function(t,n){$("body").append('
%s
'.replace("%s",n.result))}),$(document).on("pixSortableBehaviorBundle.error",function(t,n){$("body").append('
%s
'.replace("%s",n.result))}),$(".date input").on("click",function(){$(this).next("span").click()}),$("#username").focus(),$(".box-body table tr:not(.sonata-ba-list-field-header) a.edit_link").each(function(t,n){n=$(n);var e=n.attr("href");n.closest("tr").on("mouseup touchend",function(t){$(t.target).is("a, button, .js-sortable-move")||(t.ctrlKey||t.metaKey||2==t.which?window.open(e):3!=t.which&&(window.location=e))})})})},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(n){e(this,t),this.item=n,this.item.find('input[type="checkbox"]').on("change",this.change.bind(this))}return t.prototype.change=function(){this.item.toggleClass("is_checked")},t}();$(function(){$(".vich-image, .cropper").each(function(t,n){new i($(n))})})},function(t,n){"use strict";function e(){setTimeout(function(){i()},100)}function i(){o.filter(":checked").length?s.addClass("is-visible"):s.removeClass("is-visible")}var o=void 0,s=void 0;$(function(){s=$(".box-footer .form-inline"),s.length&&(o=$('#list_batch_checkbox, .sonata-ba-list input[type="checkbox"]'),o.on("change",e),e())})},function(t,n){"use strict";function e(){$(".filter-box").stop().slideToggle()}$(function(){var t=$(".dropdown.sonata-actions");$(".content-header").append('
'),$(".sonata-filter-form").appendTo(".filter-box"),t.on("click",e),t.find("ul").css("display","none")})},function(t,n){"use strict";$(function(){$(".delete_link, .sonata-ba-form-actions .btn-danger").magnificPopup({type:"ajax",closeBtnInside:!0,mainClass:"mfp-fade"})})}]); //# sourceMappingURL=app.bundle.js.map \ No newline at end of file diff --git a/Resources/public/javascript/app.bundle.js.map b/Resources/public/javascript/app.bundle.js.map index 50dcab6..fa727b1 100644 --- a/Resources/public/javascript/app.bundle.js.map +++ b/Resources/public/javascript/app.bundle.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///app.bundle.js","webpack:///webpack/bootstrap d6a7413100bd0b391e76","webpack:///./app.js","webpack:///./theme.js","webpack:///./forms.js","webpack:///./multipleactions.js","webpack:///./filters.js","webpack:///./popup.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","$","document","on","e","data","append","replace","result","this","next","click","focus","each","index","item","url","attr","closest","target","is","ctrlKey","metaKey","which","window","open","location","_classCallCheck","instance","Constructor","TypeError","imageRemove","find","change","bind","prototype","toggleClass","setTimeout","toggle","checkboxes","filter","length","element","addClass","removeClass","stop","slideToggle","trigger","appendTo","css","magnificPopup","type","closeBtnInside","mainClass"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,GAGAV,EAAA,KDMM,SAAUI,EAAQD,EAASH,GAEhC,YE9CDA,GAAQ,GACRA,EAAQ,GACRA,EAAQ,GACRA,EAAQ,GACRA,EAAQ,IFoDF,SAAUI,EAAQD,GAEvB,YG1DDQ,GAAE,WAKEA,EAAEC,UAAUC,GAAG,oCAAqC,SAACC,EAAGC,GACpDJ,EAAE,QAAQK,OAJJ,uEAKEC,QAAQ,KAAMF,EAAKG,WAI/BP,EAAEC,UAAUC,GAAG,kCAAmC,SAACC,EAAGC,GAClDJ,EAAE,QAAQK,OATD,sEAUEC,QAAQ,KAAMF,EAAKG,WAMlCP,EAAE,eAAeE,GAAG,QAAS,WACzBF,EAAEQ,MAAMC,KAAK,QAAQC,UAGzBV,EAAE,aAAaW,QAIfX,EAAE,sFAAsFY,KAAK,SAASC,EAAOC,GACzGA,EAAOd,EAAEc,EACT,IAAIC,GAAMD,EAAKE,KAAK,OACXF,GAAKG,QAAQ,MAEnBf,GAAG,mBAAoB,SAASC,GAC1BH,EAAEG,EAAEe,QAAQC,GAAG,eACbhB,EAAEiB,SAAWjB,EAAEkB,SAAsB,GAAXlB,EAAEmB,MAC5BC,OAAOC,KAAKT,GACM,GAAXZ,EAAEmB,QACTC,OAAOE,SAAWV,WHiE/B,SAAUtB,EAAQD,GAEvB,YAEA,SAASkC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GI5GKC,GJ4Ga,WI3Gf,QAAAA,GAAYhB,GAAMY,EAAAlB,KAAAsB,GACdtB,KAAKM,KAAOA,EACZN,KAAKM,KAAKiB,KAAK,0BAA0B7B,GAAG,SAAUM,KAAKwB,OAAOC,KAAKzB,OJqH1E,MAJAsB,GAAYI,UI/GbF,OJ+GgC,WI9G5BxB,KAAKM,KAAKqB,YAAY,eJkHlBL,II9GZ9B,GAAE,WACEA,EAAE,yBAAyBY,KAAK,SAASC,EAAMC,GAC3C,GAAIgB,GAAY9B,EAAEc,SJuHpB,SAAUrB,EAAQD,GAEvB,YKzHD,SAASwC,KACLI,WAAW,WACPC,KACF,KAGN,QAASA,KACFC,EAAWC,OAAO,YAAYC,OAC7BC,EAAQC,SAAS,cAEjBD,EAAQE,YAAY,cAtB5B,GAAIL,UACAG,QAEJzC,GAAE,WACEyC,EAAUzC,EAAE,4BACRyC,EAAQD,SAEZF,EAAatC,EAAE,gEACfsC,EAAWpC,GAAG,SAAU8B,GACxBA,QL0JE,SAAUvC,EAAQD,GAEvB,YM7JD,SAASkB,KACLV,EAAE,eAAe4C,OAAOC,cAT5B7C,EAAE,WACE,GAAI8C,GAAU9C,EAAE,2BAChBA,GAAE,mBAAmBK,OAAO,6BAC5BL,EAAE,uBAAuB+C,SAAS,eAClCD,EAAQ5C,GAAG,QAASQ,GACpBoC,EAAQf,KAAK,MAAMiB,IAAI,UAAW,WNgLhC,SAAUvD,EAAQD,GAEvB,YOvLDQ,GAAE,WACDA,EAAE,qDAAqDiD,eACnDC,KAAM,OACNC,gBAAgB,EAChBC,UAAW","file":"app.bundle.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(1);\n\t__webpack_require__(2);\n\t__webpack_require__(3);\n\t__webpack_require__(4);\n\t__webpack_require__(5);\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t\n\t var msg = '
%s
';\n\t var msgAlt = '
%s
';\n\t\n\t $(document).on('pixSortableBehaviorBundle.success', function (e, data) {\n\t $('body').append(msg.replace('%s', data.result));\n\t });\n\t\n\t $(document).on('pixSortableBehaviorBundle.error', function (e, data) {\n\t $('body').append(msgAlt.replace('%s', data.result));\n\t });\n\t\n\t // Trigger calendar on input click\n\t // without changing existing HTML\n\t $('.date input').on('click', function () {\n\t $(this).next('span').click();\n\t });\n\t\n\t $('#username').focus();\n\t\n\t //Make complete TR linkable\n\t\n\t $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link .js-sortable-move').each(function (index, item) {\n\t item = $(item);\n\t var url = item.attr('href');\n\t var el = item.closest('tr');\n\t\n\t el.on('mouseup touchend', function (e) {\n\t if (!$(e.target).is('a, button')) {\n\t if (e.ctrlKey || e.metaKey || e.which == 2) {\n\t window.open(url);\n\t } else if (e.which != 3) {\n\t window.location = url;\n\t }\n\t }\n\t });\n\t });\n\t});\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar imageRemove = function () {\n\t function imageRemove(item) {\n\t _classCallCheck(this, imageRemove);\n\t\n\t this.item = item;\n\t this.item.find('input[type=\"checkbox\"]').on('change', this.change.bind(this));\n\t }\n\t\n\t imageRemove.prototype.change = function change() {\n\t this.item.toggleClass('is_checked');\n\t };\n\t\n\t return imageRemove;\n\t}();\n\t\n\t$(function () {\n\t $('.vich-image, .cropper').each(function (index, item) {\n\t new imageRemove($(item));\n\t });\n\t});\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tvar checkboxes = void 0;\n\tvar element = void 0;\n\t\n\t$(function () {\n\t element = $('.box-footer .form-inline');\n\t if (!element.length) return;\n\t\n\t checkboxes = $('#list_batch_checkbox, .sonata-ba-list input[type=\"checkbox\"]');\n\t checkboxes.on('change', change);\n\t change();\n\t});\n\t\n\tfunction change() {\n\t setTimeout(function () {\n\t toggle();\n\t }, 100);\n\t}\n\t\n\tfunction toggle() {\n\t if (checkboxes.filter(':checked').length) {\n\t element.addClass('is-visible');\n\t } else {\n\t element.removeClass('is-visible');\n\t }\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t var trigger = $('.dropdown.sonata-actions');\n\t $('.content-header').append('
');\n\t $('.sonata-filter-form').appendTo('.filter-box');\n\t trigger.on('click', click);\n\t trigger.find('ul').css('display', 'none');\n\t});\n\t\n\tfunction click() {\n\t $('.filter-box').stop().slideToggle();\n\t}\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t\t$('.delete_link, .sonata-ba-form-actions .btn-danger').magnificPopup({\n\t\t\ttype: 'ajax',\n\t\t\tcloseBtnInside: true,\n\t\t\tmainClass: 'mfp-fade'\n\t\t});\n\t});\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d6a7413100bd0b391e76","require('./theme.js');\nrequire('./forms.js');\nrequire('./multipleactions.js');\nrequire('./filters.js');\nrequire('./popup.js');\n\n\n\n// WEBPACK FOOTER //\n// ./app.js","$(function(){\n\n let msg = '
%s
';\n let msgAlt = '
%s
'\n\n $(document).on('pixSortableBehaviorBundle.success', (e, data) => {\n $('body').append(\n msg.replace('%s', data.result)\n );\n });\n\n $(document).on('pixSortableBehaviorBundle.error', (e, data) => {\n $('body').append(\n msgAlt.replace('%s', data.result)\n );\n });\n\n // Trigger calendar on input click\n // without changing existing HTML\n $('.date input').on('click', function(){\n $(this).next('span').click();\n });\n\n $('#username').focus();\n\n //Make complete TR linkable\n\n $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link .js-sortable-move').each(function(index, item){\n item = $(item);\n let url = item.attr('href');\n let el = item.closest('tr');\n\n el.on('mouseup touchend', function(e){\n if (!$(e.target).is('a, button')) {\n if (e.ctrlKey || e.metaKey || e.which == 2) {\n window.open(url);\n } else if (e.which != 3) {\n window.location = url;\n }\n }\n })\n\n });\n});\n\n\n\n// WEBPACK FOOTER //\n// ./theme.js","class imageRemove {\n constructor(item) {\n this.item = item\n this.item.find('input[type=\"checkbox\"]').on('change', this.change.bind(this));\n } \n change() {\n this.item.toggleClass('is_checked');\n }\n}\n\n$(function(){\n $('.vich-image, .cropper').each(function(index,item){\n new imageRemove($(item));\n });\n \n});\n\n\n// WEBPACK FOOTER //\n// ./forms.js","let checkboxes;\nlet element;\n\n$(function(){\n element = $('.box-footer .form-inline');\n if(!element.length) return;\n\n checkboxes = $('#list_batch_checkbox, .sonata-ba-list input[type=\"checkbox\"]');\n checkboxes.on('change', change);\n change();\n});\n\nfunction change() {\n setTimeout(function() {\n toggle();\n },100);\n}\n \nfunction toggle() {\n if(checkboxes.filter(':checked').length) {\n element.addClass('is-visible');\n } else {\n element.removeClass('is-visible');\n }\n} \n\n\n// WEBPACK FOOTER //\n// ./multipleactions.js","$(function(){\n let trigger = $('.dropdown.sonata-actions'); \n $('.content-header').append('
');\n $('.sonata-filter-form').appendTo('.filter-box');\n trigger.on('click', click);\n trigger.find('ul').css('display', 'none');\n});\n\nfunction click() {\n $('.filter-box').stop().slideToggle();\n}\n\n\n\n// WEBPACK FOOTER //\n// ./filters.js","$(function(){\n\t$('.delete_link, .sonata-ba-form-actions .btn-danger').magnificPopup({\n\t type: 'ajax',\n\t closeBtnInside: true,\n\t mainClass: 'mfp-fade'\n\t});\n});\n\n\n// WEBPACK FOOTER //\n// ./popup.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///app.bundle.js","webpack:///webpack/bootstrap ffb084750f14c5966d30","webpack:///./app.js","webpack:///./theme.js","webpack:///./forms.js","webpack:///./multipleactions.js","webpack:///./filters.js","webpack:///./popup.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","$","document","on","e","data","append","replace","result","this","next","click","focus","each","index","item","url","attr","closest","target","is","ctrlKey","metaKey","which","window","open","location","_classCallCheck","instance","Constructor","TypeError","imageRemove","find","change","bind","prototype","toggleClass","setTimeout","toggle","checkboxes","filter","length","element","addClass","removeClass","stop","slideToggle","trigger","appendTo","css","magnificPopup","type","closeBtnInside","mainClass"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,GAGAV,EAAA,KDMM,SAAUI,EAAQD,EAASH,GAEhC,YE9CDA,GAAQ,GACRA,EAAQ,GACRA,EAAQ,GACRA,EAAQ,GACRA,EAAQ,IFoDF,SAAUI,EAAQD,GAEvB,YG1DDQ,GAAE,WAKEA,EAAEC,UAAUC,GAAG,oCAAqC,SAACC,EAAGC,GACpDJ,EAAE,QAAQK,OAJJ,uEAKEC,QAAQ,KAAMF,EAAKG,WAI/BP,EAAEC,UAAUC,GAAG,kCAAmC,SAACC,EAAGC,GAClDJ,EAAE,QAAQK,OATD,sEAUEC,QAAQ,KAAMF,EAAKG,WAMlCP,EAAE,eAAeE,GAAG,QAAS,WACzBF,EAAEQ,MAAMC,KAAK,QAAQC,UAGzBV,EAAE,aAAaW,QAIfX,EAAE,qEAAqEY,KAAK,SAASC,EAAOC,GACxFA,EAAOd,EAAEc,EACT,IAAIC,GAAMD,EAAKE,KAAK,OACXF,GAAKG,QAAQ,MAEnBf,GAAG,mBAAoB,SAASC,GAC1BH,EAAEG,EAAEe,QAAQC,GAAG,kCACbhB,EAAEiB,SAAWjB,EAAEkB,SAAsB,GAAXlB,EAAEmB,MAC5BC,OAAOC,KAAKT,GACM,GAAXZ,EAAEmB,QACTC,OAAOE,SAAWV,WHiE/B,SAAUtB,EAAQD,GAEvB,YAEA,SAASkC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,GI5GKC,GJ4Ga,WI3Gf,QAAAA,GAAYhB,GAAMY,EAAAlB,KAAAsB,GACdtB,KAAKM,KAAOA,EACZN,KAAKM,KAAKiB,KAAK,0BAA0B7B,GAAG,SAAUM,KAAKwB,OAAOC,KAAKzB,OJqH1E,MAJAsB,GAAYI,UI/GbF,OJ+GgC,WI9G5BxB,KAAKM,KAAKqB,YAAY,eJkHlBL,II9GZ9B,GAAE,WACEA,EAAE,yBAAyBY,KAAK,SAASC,EAAMC,GAC3C,GAAIgB,GAAY9B,EAAEc,SJuHpB,SAAUrB,EAAQD,GAEvB,YKzHD,SAASwC,KACLI,WAAW,WACPC,KACF,KAGN,QAASA,KACFC,EAAWC,OAAO,YAAYC,OAC7BC,EAAQC,SAAS,cAEjBD,EAAQE,YAAY,cAtB5B,GAAIL,UACAG,QAEJzC,GAAE,WACEyC,EAAUzC,EAAE,4BACRyC,EAAQD,SAEZF,EAAatC,EAAE,gEACfsC,EAAWpC,GAAG,SAAU8B,GACxBA,QL0JE,SAAUvC,EAAQD,GAEvB,YM7JD,SAASkB,KACLV,EAAE,eAAe4C,OAAOC,cAT5B7C,EAAE,WACE,GAAI8C,GAAU9C,EAAE,2BAChBA,GAAE,mBAAmBK,OAAO,6BAC5BL,EAAE,uBAAuB+C,SAAS,eAClCD,EAAQ5C,GAAG,QAASQ,GACpBoC,EAAQf,KAAK,MAAMiB,IAAI,UAAW,WNgLhC,SAAUvD,EAAQD,GAEvB,YOvLDQ,GAAE,WACDA,EAAE,qDAAqDiD,eACnDC,KAAM,OACNC,gBAAgB,EAChBC,UAAW","file":"app.bundle.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(1);\n\t__webpack_require__(2);\n\t__webpack_require__(3);\n\t__webpack_require__(4);\n\t__webpack_require__(5);\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t\n\t var msg = '
%s
';\n\t var msgAlt = '
%s
';\n\t\n\t $(document).on('pixSortableBehaviorBundle.success', function (e, data) {\n\t $('body').append(msg.replace('%s', data.result));\n\t });\n\t\n\t $(document).on('pixSortableBehaviorBundle.error', function (e, data) {\n\t $('body').append(msgAlt.replace('%s', data.result));\n\t });\n\t\n\t // Trigger calendar on input click\n\t // without changing existing HTML\n\t $('.date input').on('click', function () {\n\t $(this).next('span').click();\n\t });\n\t\n\t $('#username').focus();\n\t\n\t //Make complete TR linkable\n\t\n\t $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link').each(function (index, item) {\n\t item = $(item);\n\t var url = item.attr('href');\n\t var el = item.closest('tr');\n\t\n\t el.on('mouseup touchend', function (e) {\n\t if (!$(e.target).is('a, button, .js-sortable-move')) {\n\t if (e.ctrlKey || e.metaKey || e.which == 2) {\n\t window.open(url);\n\t } else if (e.which != 3) {\n\t window.location = url;\n\t }\n\t }\n\t });\n\t });\n\t});\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar imageRemove = function () {\n\t function imageRemove(item) {\n\t _classCallCheck(this, imageRemove);\n\t\n\t this.item = item;\n\t this.item.find('input[type=\"checkbox\"]').on('change', this.change.bind(this));\n\t }\n\t\n\t imageRemove.prototype.change = function change() {\n\t this.item.toggleClass('is_checked');\n\t };\n\t\n\t return imageRemove;\n\t}();\n\t\n\t$(function () {\n\t $('.vich-image, .cropper').each(function (index, item) {\n\t new imageRemove($(item));\n\t });\n\t});\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tvar checkboxes = void 0;\n\tvar element = void 0;\n\t\n\t$(function () {\n\t element = $('.box-footer .form-inline');\n\t if (!element.length) return;\n\t\n\t checkboxes = $('#list_batch_checkbox, .sonata-ba-list input[type=\"checkbox\"]');\n\t checkboxes.on('change', change);\n\t change();\n\t});\n\t\n\tfunction change() {\n\t setTimeout(function () {\n\t toggle();\n\t }, 100);\n\t}\n\t\n\tfunction toggle() {\n\t if (checkboxes.filter(':checked').length) {\n\t element.addClass('is-visible');\n\t } else {\n\t element.removeClass('is-visible');\n\t }\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t var trigger = $('.dropdown.sonata-actions');\n\t $('.content-header').append('
');\n\t $('.sonata-filter-form').appendTo('.filter-box');\n\t trigger.on('click', click);\n\t trigger.find('ul').css('display', 'none');\n\t});\n\t\n\tfunction click() {\n\t $('.filter-box').stop().slideToggle();\n\t}\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\t$(function () {\n\t\t$('.delete_link, .sonata-ba-form-actions .btn-danger').magnificPopup({\n\t\t\ttype: 'ajax',\n\t\t\tcloseBtnInside: true,\n\t\t\tmainClass: 'mfp-fade'\n\t\t});\n\t});\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap ffb084750f14c5966d30","require('./theme.js');\nrequire('./forms.js');\nrequire('./multipleactions.js');\nrequire('./filters.js');\nrequire('./popup.js');\n\n\n\n// WEBPACK FOOTER //\n// ./app.js","$(function(){\n\n let msg = '
%s
';\n let msgAlt = '
%s
'\n\n $(document).on('pixSortableBehaviorBundle.success', (e, data) => {\n $('body').append(\n msg.replace('%s', data.result)\n );\n });\n\n $(document).on('pixSortableBehaviorBundle.error', (e, data) => {\n $('body').append(\n msgAlt.replace('%s', data.result)\n );\n });\n\n // Trigger calendar on input click\n // without changing existing HTML\n $('.date input').on('click', function(){\n $(this).next('span').click();\n });\n\n $('#username').focus();\n\n //Make complete TR linkable\n\n $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link').each(function(index, item){\n item = $(item);\n let url = item.attr('href');\n let el = item.closest('tr');\n\n el.on('mouseup touchend', function(e){\n if (!$(e.target).is('a, button, .js-sortable-move')) {\n if (e.ctrlKey || e.metaKey || e.which == 2) {\n window.open(url);\n } else if (e.which != 3) {\n window.location = url;\n }\n }\n })\n\n });\n});\n\n\n\n// WEBPACK FOOTER //\n// ./theme.js","class imageRemove {\n constructor(item) {\n this.item = item\n this.item.find('input[type=\"checkbox\"]').on('change', this.change.bind(this));\n } \n change() {\n this.item.toggleClass('is_checked');\n }\n}\n\n$(function(){\n $('.vich-image, .cropper').each(function(index,item){\n new imageRemove($(item));\n });\n \n});\n\n\n// WEBPACK FOOTER //\n// ./forms.js","let checkboxes;\nlet element;\n\n$(function(){\n element = $('.box-footer .form-inline');\n if(!element.length) return;\n\n checkboxes = $('#list_batch_checkbox, .sonata-ba-list input[type=\"checkbox\"]');\n checkboxes.on('change', change);\n change();\n});\n\nfunction change() {\n setTimeout(function() {\n toggle();\n },100);\n}\n \nfunction toggle() {\n if(checkboxes.filter(':checked').length) {\n element.addClass('is-visible');\n } else {\n element.removeClass('is-visible');\n }\n} \n\n\n// WEBPACK FOOTER //\n// ./multipleactions.js","$(function(){\n let trigger = $('.dropdown.sonata-actions'); \n $('.content-header').append('
');\n $('.sonata-filter-form').appendTo('.filter-box');\n trigger.on('click', click);\n trigger.find('ul').css('display', 'none');\n});\n\nfunction click() {\n $('.filter-box').stop().slideToggle();\n}\n\n\n\n// WEBPACK FOOTER //\n// ./filters.js","$(function(){\n\t$('.delete_link, .sonata-ba-form-actions .btn-danger').magnificPopup({\n\t type: 'ajax',\n\t closeBtnInside: true,\n\t mainClass: 'mfp-fade'\n\t});\n});\n\n\n// WEBPACK FOOTER //\n// ./popup.js"],"sourceRoot":""} \ No newline at end of file diff --git a/Resources/public/javascript/theme.js b/Resources/public/javascript/theme.js index b057023..c8ce3e7 100644 --- a/Resources/public/javascript/theme.js +++ b/Resources/public/javascript/theme.js @@ -25,13 +25,13 @@ $(function(){ //Make complete TR linkable - $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link .js-sortable-move').each(function(index, item){ + $('.box-body table tr:not(.sonata-ba-list-field-header) a.edit_link').each(function(index, item){ item = $(item); let url = item.attr('href'); let el = item.closest('tr'); el.on('mouseup touchend', function(e){ - if (!$(e.target).is('a, button')) { + if (!$(e.target).is('a, button, .js-sortable-move')) { if (e.ctrlKey || e.metaKey || e.which == 2) { window.open(url); } else if (e.which != 3) {