diff --git a/edit.module b/edit.module index 0f06db6..97922f9 100644 --- a/edit.module +++ b/edit.module @@ -775,11 +775,20 @@ function edit_navbar() { '#type' => 'navbar_item', 'tab' => array( 'trigger' => array( + '#type' => 'link', + '#href' => current_path(), + '#options' => array('attributes' => array('id' => 'edit-trigger-link')), + '#ajax' => array( + 'path' => 'edit/metadata', + 'event' => 'metadatafetch.edit', + 'progress' => array(), + ), + '#attached' => array('library' => array(array('edit', 'edit'))), '#theme' => 'html_tag', '#tag' => 'button', '#value_prefix' => '', '#value_suffix' => '', - '#value' => t('Quick Edit'), + '#value' => t('Edit'), '#attributes' => array( 'class' => array('icon', 'icon-edit'), 'id' => 'edit-trigger-link' diff --git a/images/edit-active.png b/images/edit-active.png deleted file mode 100644 index 6dd158d..0000000 Binary files a/images/edit-active.png and /dev/null differ diff --git a/images/edit.png b/images/edit.png deleted file mode 100644 index eb93320..0000000 Binary files a/images/edit.png and /dev/null differ