formstrap 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40f3e1c17b291e264dbe5dc51b0b478c6ca4b92d33a0ecc1f758cc4a9d48510a
|
4
|
+
data.tar.gz: 271fd64f522260f1845475094be4a6abf4c7a8e527dc36cbf43ffe1e8f00007b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a164e51245520da0e05bb9c6ddb899791f113f00b5b76a50e48e4c1e4ebc4a551c35586814c3697e087ae0050b2d5f2b2ed104b2ce340368fb5ddb7c2d845e66
|
7
|
+
data.tar.gz: 801723b921f1f07c8de24799b75532fa9a3cc591e8d98f13c116b4dea4013cf6fc4795d0859d64f34546fd771943190880a1cb8537b2934c79829e4e300a81bb
|
@@ -31,7 +31,7 @@ export default class extends Controller {
|
|
31
31
|
const ids = this.activeIds()
|
32
32
|
|
33
33
|
this.modalButtonTargets.forEach((button) => {
|
34
|
-
const sourceLocation = location.protocol + '//' + location.host
|
34
|
+
const sourceLocation = window.location.protocol + '//' + window.location.host
|
35
35
|
const url = new URL(button.getAttribute('href'), sourceLocation)
|
36
36
|
|
37
37
|
// Remove all ids[]
|
@@ -10974,7 +10974,7 @@ var media_controller_default = class extends Controller {
|
|
10974
10974
|
syncIds() {
|
10975
10975
|
const ids = this.activeIds();
|
10976
10976
|
this.modalButtonTargets.forEach((button) => {
|
10977
|
-
const sourceLocation = location.protocol + "//" + location.host;
|
10977
|
+
const sourceLocation = window.location.protocol + "//" + window.location.host;
|
10978
10978
|
const url = new URL(button.getAttribute("href"), sourceLocation);
|
10979
10979
|
url.searchParams.delete("ids[]");
|
10980
10980
|
ids.forEach((id) => {
|
@@ -152,13 +152,7 @@ module Formstrap
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def render_input(name, attribute, options)
|
155
|
-
|
156
|
-
renderer = ApplicationController.renderer.new(
|
157
|
-
http_host: "headmin.test",
|
158
|
-
https: true
|
159
|
-
)
|
160
|
-
|
161
|
-
renderer.render(template: "formstrap/_#{name}", locals: {form: self, attribute: attribute, **options})
|
155
|
+
@template.render("formstrap/#{name}", form: self, attribute: attribute, **options)
|
162
156
|
end
|
163
157
|
|
164
158
|
def method_missing(name, *args, &block)
|
data/lib/formstrap/version.rb
CHANGED
data/package.json
CHANGED