Changeset 2fe59fc in osmose-frontend


Ignore:
Timestamp:
Mar 8, 2014 11:05:10 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Children:
6c88804
Parents:
cdd03b5
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (08/03/2014 22:46:52)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (08/03/2014 23:05:10)
Message:

Fix map menu

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • static/map/Osmose.Editor.js

    rcdd03b5 r2fe59fc  
    3232        text: self.saveDialog.attr('data-button_save'), 
    3333        click: function () { 
    34           var dialog_content = self.saveDialog.html(); 
    35           self.saveDialog.html("<center><img src='../images/throbbler.gif' alt='downloading'></center>"); 
    36           self.saveDialog.parent().find('.ui-dialog-buttonpane').hide(); 
    37  
    38           var comment = document.forms.editor_save_form.elements.comment.value, 
     34          var dialog_content = self.saveDialog.html(), 
     35            comment = document.forms.editor_save_form.elements.comment.value, 
    3936            source = document.forms.editor_save_form.elements.source.value, 
    4037            type = document.forms.editor_save_form.elements.type.value 
    4138            reuse_changeset = document.forms.editor_save_form.elements.reuse_changeset.checked; 
     39          self.saveDialog.html("<center><img src='../images/throbbler.gif' alt='downloading'></center>"); 
     40          self.saveDialog.parent().find('.ui-dialog-buttonpane').hide(); 
     41 
    4242          self._upload(comment, source, type, reuse_changeset); 
    4343 
     
    9696 
    9797  _upload: function (comment, source, type, reuse_changeset) { 
     98    var self = this; 
    9899    $.ajax({ 
    99100      url: '../editor/save', 
     
    102103      data: JSON.stringify({ 
    103104        tag: { 
    104           comment: document.forms.editor_save_form.elements.comment.value, 
    105           source: document.forms.editor_save_form.elements.source.value, 
    106           type: document.forms.editor_save_form.elements.type.value 
     105          comment: comment, 
     106          source: source, 
     107          type: type 
    107108        }, 
    108         reuse_changeset: document.forms.editor_save_form.elements.reuse_changeset.checked, 
     109        reuse_changeset: reuse_changeset, 
    109110        modify: self._modifiyObjectStack, 
    110111        delete: self._deleteObjectStack 
     
    114115      self._deleteObjectStack = {}; 
    115116      self._count_touched(); 
    116       this.saveDialog.dialog('close'); 
     117      self.saveDialog.dialog('close'); 
    117118    }).fail(function (xhr, err) { 
    118119      alert("readyState: " + xhr.readyState + "\nstatus: " + xhr.status); 
  • views/map/index.tpl

    r9accaad r2fe59fc  
    5656      <br> 
    5757      <span id="fixable-span"> 
    58         <label for='tags'>{{_("Fixable")}}</label> 
     58        <label for='fixable'>{{_("Fixable")}}</label> 
    5959        <input type="checkbox" name="fixable" id="fixable" value="true"{{fixable_checked}} title="{{_("Show only markers with correction suggestions")}}"/> 
    6060      </span> 
Note: See TracChangeset for help on using the changeset viewer.