Jump to content

Mats

Members
  • Posts

    355
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Mats

  1. Would it be possible to add drag and drop for pinning a location?

    Like this: http://jsfiddle.net/salman/ZW9jP/4/

    Got it working. Just the updating of the address filed when manually moving the marker is missing.

    /**
    * Display a Google Map and pinpoint a location for InputfieldMapMarker
    *
    */
    
    var InputfieldMapMarker = {
    
    options: {
    zoom: 5,
    draggable: true,
    center: null,
    mapTypeId: google.maps.MapTypeId.HYBRID,
    scrollwheel: false,
    mapTypeControlOptions: {
    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
    },
    scaleControl: false,
    
    },
    
    init: function(mapId, lat, lng) {
    var options = InputfieldMapMarker.options;
    options.center = new google.maps.LatLng(lat, lng);
    options.zoom = 5;
    var map = new google.maps.Map(document.getElementById(mapId), options);
    var marker = new google.maps.Marker({
    position: options.center,
    map: map,
    draggable: options.draggable
    });
    document.getElementById("_Inputfield_karta_lat").value = marker.getPosition().lat();
    	document.getElementById("_Inputfield_karta_lng").value = marker.getPosition().lng();
    
    	google.maps.event.addListener(marker, 'dragend', function (event) {
    		document.getElementById("_Inputfield_karta_lat").value = this.getPosition().lat();
    		document.getElementById("_Inputfield_karta_lng").value = this.getPosition().lng();
    	});
    
    }
    };
    
    $(document).ready(function() {
    $(".InputfieldMapMarkerMap").each(function() {
    var $t = $(this);
    InputfieldMapMarker.init($t.attr('id'), $t.attr('data-lat'), $t.attr('data-lng'));
    });
    });
    
    • Like 1
  2. Ryan, it's on the admin side the å,ä,ö characters doesn't work. Sorry, wasn't clear enough.

    Another thing i noticed is that on a reload of successful comment the same comment is added again.

    (Maybe this should be moved to the comments module thread?)

    Edit: In the comments manager the characters works, but in the comments field they don't.

  3. I have the latest release from Github and the problem persists.

    The phrases that are missing (i can't find them anyway) for the processlatestcommentsmodule:

    "Comments Manager"

    "Manage all comments field data in chronological order. Provides a simpler interface for managing comments vs. the page-based comment editor."

    Here are some other phrases missing:

    https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module#L60

    https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module#L60

    https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module#L88

    I translated the files in your post, but they doesn't seem to translate the comments fields on the pages with comments. Also the encoding for the å,ä,ö characters seems wrong.

    Thanks!

  4. Thanks for the feedback everyone!

    @yellowled: Glad you didn't recognize the site as Bootstrap. It's really easy to change the look thanks to the customization options.

    @apeisa: I never celebrated midsummer in Finland, seems like a lot fun!

    @arjen: Thanks for pointing that out. I'll look in to it.

    @Soma: Added clears and changed the path to the spinner.

  5. Eketorp is an open-air museum located in the south east of sweden on the island of Öland in the Baltic sea. The museum is a part of Kalmar Läns Museum (Kalmar County Museum).

    The site's front end is based on Twitter Bootstrap and Jquery Mobile. The ajax search was kindly developed by Soma after a request on the IRC channel. Big thanks to you Soma!

    If you visit Öland you really should go, it’s a pretty cool place.

    Thank you Ryan for an excellent system!

    Happy midsummer!

    Mats

    • Like 2
×
×
  • Create New...