Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 #10

Merged
merged 8 commits into from
Jul 9, 2014
Merged

#6 #10

merged 8 commits into from
Jul 9, 2014

Conversation

Noitidart
Copy link
Owner

and a bunch of other stuff

PimpUigi and others added 8 commits May 27, 2014 16:30
One of the last couple CTR updates adjusted the way "toolbar items" were placed, and as such the margin here needed to be tweaked.
toolbarbutton.css
-One of the last couple CTR updates adjusted the way "toolbar items" were placed, and as such the margin here needed to be tweaked.
bootstrap.js
- now when user browses to a file, it will show the "Restore Default"
button
- when user clicks restore default button it will hide the button
- learned: about inline option inputChanged method and setting the
attribute of `oninputchanged`

options.xul
- added the elements for the custom label, didnt do any pref work on it
yet though
bootstrap.js
- not doing the add btn double times, doing in loop now
- supporting custom img preview instead of label of path, on click of it
though it shows the path
bootstrap.js
- forgot to set img.value attribute on addons-options-displayed so on
click it wouldnt alert the path correct, it would be undfeind
- needed to use setAttribute with image value as its not a real
attribute on it

toolbarbutton.css
- i tried via css putting a "Preview: " before content before image with
src attribute that is not blank BUT its not taking, i think its that xbl
binding crap that @nmaier told me about when i was trying to badge
toolbarbuttons
bootstrap.js
- os.file to copy image to profile folder, so if user deletes image from
hard drive it will still work
- when change image on inline options page, it loads image for preview
from disk, obiouvlsy it has to be on disk, but will do a copy and set
the icon to that uri
- on uninstall it deletes the copied file
- because now im replacing overwriting old file, the image was caching
for like a few hundred ms or a sec or so. so i had to add # +
Math.radnom() to end of image path so it doesnt cache
bootstrap.js
- removed the `alert`s
- renamed the throbber id so it works with ctr

toolbarbutton.css
- renamed the throbber id so it works with ctr
bootstrap.js
- no need to re-import during `uninstall` because all globals get called
on uninstall as bootstrap.js is loaded

install.rdf
- updated description to reflect allowing custom images
Noitidart added a commit that referenced this pull request Jul 9, 2014
#6 and ff31+ support and custom image supoprt
@Noitidart Noitidart merged commit 439485c into master Jul 9, 2014
@Noitidart Noitidart deleted the #6 branch July 9, 2014 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants